Start with Python
This commit is contained in:
21
1- python/2-py-dictionaries/README.md
Normal file
21
1- python/2-py-dictionaries/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
0
1- python/2-py-dictionaries/dictionaries.py
Normal file
0
1- python/2-py-dictionaries/dictionaries.py
Normal file
Reference in New Issue
Block a user