2015-07-22 16:44:07 -04:00

22 lines
509 B
Markdown

Python Dictionaries In Depth
============================
Model these people as dictionaries:
Name: Michaela
Gender: Female
Height in cm: 178
Job: Visual Artist
Parents: Aimee, Louis
Pets: Fezzy, Rufus
Name: Steve
Gender: Male
Height in cm: 160
Job: Graphic Designer
Nickname: The Cow
Friends: Stephen, Stephanie, Stefan
Jobs: Graphic Designer at Acme Corp, Bartender at Banter
Print out the keys and values of each person object. Look into iterating over dictionaries in Python