Exercise 11 · Chapter: DictionariesOptional+50 XP
Coin Quest: Hero Stats
🪙 Real game data lives in dictionaries. The hero starts as {"name": "Alex", "coins": 30}.
- The hero levels up — add the key
"level"with the value2 - They find 10 more coins — update
"coins"to40 - Print name, coins, and level on one line, separated by spaces
Expected output
Alex 40 2
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.