This is Key!


#1

Whats wrong in my code ?

webster = {
	"Aardvark" : "A star of a popular children's cartoon show.",
    "Baa" : "The sound a goat makes.",
    "Carpet": "Goes on the floor.",
    "Dab": "A small amount."
}

# Add your code below!
for key in webster:
    print "Aardvark", webster["Aardvark"]

#2

If you want that the output is "Aardvak; A star of a popular children's cartoon show." You should not be looping. Remove the for- loop and it will work, but that will not let you pass.


#3

Hi, @rohit.23maygmail.com ,

Why are you only displaying results for "Aardvark" here? ...

print "Aardvark", webster["Aardvark"]

Use the key variable that you created in the for loop header. Also, you should only display the definitions.


#4

Okay thanks it worked

for key in webster:
    print key, webster[key]

#5