Daily Python
Day 8Python~40 min
Dictionaries
Key-value data for contacts and records
Track progress0/15 days
What you'll learn
dictkeysvaluesitemsin
- Create and update dictionaries
- Loop with .items()
- Build a contact book with CRUD menu
Lesson & examples
Read the code, then the explanation — try changing values before the project.
Contact dict
contact = {"name": "John", "phone": "123-456-7890"}
contact["email"] = "john@example.com"
for key, value in contact.items():
print(f"{key}: {value}")