betoesquivel

iteratingOnDict

Jan 21st, 2015
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. >>> 'iliana' in dict.keys()
  2. True
  3. >>> for k,v in dict.items():
  4. ...     print "The key is {0} and the value is {1}".format(k,v)
  5. ...
  6. The key is iliana and the value is El del DF
Advertisement
Add Comment
Please, Sign In to add comment