This is key


#1



https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/0/2?curriculum_id=4f89dab3d788890003000096#


my code was correct but is there a way to shorten this, or must each key be printed individually?




#2

ok so i had i total blank moment i replaced the code with

print webster[w] and it came out the proper way sorry about this looking at the example i thought i was having to print each separate key.


#3

Your code passed, but obviously is not correct. Blame a lax SCT (lesson checker) for letting this pass. Notice that your output repeats four times? That is because you are not using the key variable in the loop...

for key in webster:
    print webster[key]

#4

i realized that shortly after posting that the repeating probably was not the correct way it should have printed.

i reset the prompt and inserted the key i created into the print and it cleaned up the response.


#5

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