I lost a berry



You have to print like this..
key value

print automatically puts space here.
but as it asks to put a space you can use ' ' between them.


Hi there,

Thanks for the input. I tried it, and can't get it to work.

Just this "key value" results in an unrecognized value error. Even adding a comma like this "key, value" does not work either. Also tried this "print key, " ", value"

The code that I currently use, actually prints this out correct, as far as I can tell: "a apple c cherry b berry None", isn't that what the instructions asked for?

Thanks in advance,


Have you used value or d[key] for value?
value is d[key],right ?


d = {'a': 'apple', 'b': 'berry', 'c': 'cherry'}

for key in d:

    print key, d[key]
# Your code here!


try :
print(key + " " + d[key])


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.