Dictionaries
8 min · Python
Store values under their own names instead of numbered positions.
Python · Dictionaries0/5 cleared
Enemy 1 of 5
A dictionary holds key-value pairs inside curly braces: each value is looked up by a name (its key) instead of a numbered position, like a list is.
Run this to make a dictionary describing a player and print a value by its key.
You
Goblin Glitch
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: Ada