01 / 07
Representing a member with a dictionary
When you met dictionaries in Chapter 2 you may have thought: if I want to represent a person or a shop, surely this is enough.
And for a while it is. The information for a single member goes into a dictionary like this.
member = {"name": "Aoi", "years": 3}print(member["name"])print(member["years"])Result
Aoi 3