user = {"name": "Maya", "age": 12}Line-by-line explanation
- Curly braces create the dictionary.
"name"is a key and"Maya"is its value.- A colon connects each key to its value.
- A comma separates pairs.
print(user["name"])Line-by-line explanation
useris the dictionary.["name"]looks up that key.- The output is
Maya.