Skip to content
Advertisement

Why I can’t add more keys to a dict? – Python

I have a program where I want to add more keys to a dictionary.

When I add only one key, everything is OK:

JavaScript

But when I add a second key, I get an error message:

JavaScript

How can I add more keys?

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement