PYTHON CORE · LESSON 19
Dictionary
Looking by name. · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Reprint the dictionary and get the key value.
pet = {"name": "Рекс", "age": 3}
print(pet["name"])Open the editor for class workSolve it yourself
Create a book dictionary with «title» keys: «Космос» and «pages»:20. Find the «title» key value.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework