Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, November 29, 2012

Codecademy: Looping over a dictionary


#sample solution


d = {'x': 9, 'y': 10, 'z': 20}

for key in d:
print key +" "+ str(d[key])

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts