Looping over a dictionary


Replace this line with your code. 
d = {'a': 'apple', 'b': 'berry', 'c': 'cherry'}

for key in sorted(d):
    # Your code here!
    print key,d[key]

Continuing the discussion from 14. Looping Over a Dictionary:


That topic you continue from is resolved. What is your question/point with this new topic? I only see code


it's : for key in d ,, try it that way