my code was correct but is there a way to shorten this, or must each key be printed individually?
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.
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]
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.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.