HomeTracks
Explorer···
THEEBUG
Completed0/9
Score0
PYlesson6.py×
THEEBUGlesson6.py
1
user = {"name": "Ada", "age": 30}
2
name = user[______]
3
print(name)
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
"name"
name
'user'
0
Game Panel
0:000 pts
Level 6 of 9Dictionaries
0/1 slots correct
Objective
Access the user's name from the dictionary using the correct key
Expected Output
Ada
Debug says:
Dictionaries are accessed with square brackets and the key. Which block is the correct key to get the name?
Debug the Worm