Why isn’t my print dictionary solution accepted?


#1

Question

Why isn’t my print dictionary solution accepted?

Answer

The most common issues have to do with formatting. Codecademy has tests running behind the scenes to check that your code and output exactly match what is being asked for. For this exercise, we want to print the key followed by the value on the same line.
Like the example given: print key, some_dict[key].
Be sure not to include another comma at the end since we want each new key-value pair on a new line.


FAQ: Learn Python - Advanced Topics in Python - The 'in' Operator