01 / 07
One person fitted in a dictionary
With a dictionary, one person worth of data comes out neatly. The name and the score are one thing.
But a register does not stop at one person. What do you do when you want many of them?
person = {"name": "Yui", "score": 80}print(person["name"], person["score"])Result
Yui 80