Project: Teach Your Code to Remember Lots of Things!
Practice how to store and retrieve labeled data using dictionaries.
We'll cover the following
In this lesson, you’ll practice using Python dictionaries to store and organize labeled information, like a profile about yourself.
Your Turn: Build a personal profile
Let’s help Python remember important details about you! You’ll create a dictionary to represent your profile, and then use a loop to print out everything it knows.
Task instructions
Create a dictionary called
me
with keys like"name"
,"hobby"
, and"language"
.Add a few more keys like
"favorite_food"
,"color"
, or"dream_job"
—get creative!Use a
for
loop to print out each label and its value in a clear format.
Get hands-on with 1400+ tech skills courses.