I am having trouble with associating a key with a value using a hash. When I run the module this is the error message I get
Traceback (most recent call last):
File "C:/Python33/scores2.py", line 5, in <module>
for score, surfer in scores.item():
AttributeError: 'dict' object has no attribute 'item'
Here is the code
scores = {}
scores [8.45] = 'Joseph'
scores [9.12] = 'Juan'
scores [7.12] = 'Zack'
for score, surfer in scores.item():
print(surfer + ' had a score of ' + str(score))
If someone could please advise it would be appreciated.
Thanks











