Problem in printing the keys and values of dictionary


#1

I got the exact output, but the servers pop-up an error "Oops, try again. It looks like you did not print out every key in my_dict. "

my_dict={
    "Name":"Aravind",
    "Age":"Twenty Three",
    "Like":"Programming"
    }
for key in my_dict:
    print key + " "+my_dict[key]


#2

please post the exercise url

seems because you print the key and value on the same line, which throws the error


#3

This is my exercise url:

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


#4

the instructions state:

(You should use print a, b rather than print a + " " + b.)

so you should separate the key and value with a a comma rather then +" " +


#5

Thankyou , so much.
unfortunately i understand the instructions wrongly


#6