title: How to print only 1 item from a dictionary
body: <p>I've recently just started learning Python and usally find answers to my problems online but can't seem to get the right solution for this one. 
  I created a dictionary with 3 contacts and i want to print 1 contact from the list using an if statement.</p>
  
  <pre><code>contacts = {
      "John" : 938477566,
      "Jack" : 938377264,
      "Jill" : 947662781
  }
  </code></pre>
  
  <p><code>if "John" in contacts:
      print ("Contact details: %s %i" % contacts.items()[0])</code></p>
  
  <p>This is the output I am looking for:</p>
  
  <blockquote>
    <p>Contact details: John 938477566</p>
  </blockquote>
  
  <p>But i keep getting this </p>
  
  <blockquote>
    <p>Traceback (most recent call last):
      File "C:\Users\user\Documents\asega\python\objectsclasses\exercise3.py", line 31, in 
        print ("Contact details: %s %i" % contacts.items()[0])
    TypeError: 'dict_items' object does not support indexing</p>
  </blockquote>
  
  <p>Thanks</p>