Please Identify the Error


#1



Link: https://www.codecademy.com/courses/python-beginner-en-KAgt5/0/3?curriculum_id=4f89dab3d788890003000096


Error Message: Oops, try again. It looks like you did not print out every key in my_dict.


my_dict={
    "Name": "Guid",
    "Age": 57,
    "BDFL": False
    }
for key in my_dict:
    print(key, my_dict[key])
    #print(str(key)+" "+str(my_dict[key]))


#2

using parentheses for print will cause the output to be printed as a tuple (immutable list), you should print the output as tuple


#4

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