Created
October 1, 2018 17:43
-
-
Save ardenn/9ce87ab34ce8ec73c73a2837dcd6d67b to your computer and use it in GitHub Desktop.
Python Dictionaries Tutorial - Create a dictionary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create an empty dictionary | |
empty_property = dict() | |
# create dictionary using a list of key-value tuples | |
job2 = dict([ | |
("title","Marketing & Business Development Manager"),("location","Mombasa"), | |
("job_type","Full Time"), | |
("employer","KUSCCO Limited (Kenya Union of Savings & Credit Co-operatives Limited)"), | |
("category","Marketing & Communications") | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment