Skip to content

Instantly share code, notes, and snippets.

@ardenn
Created October 1, 2018 17:43
Show Gist options
  • Save ardenn/9ce87ab34ce8ec73c73a2837dcd6d67b to your computer and use it in GitHub Desktop.
Save ardenn/9ce87ab34ce8ec73c73a2837dcd6d67b to your computer and use it in GitHub Desktop.
Python Dictionaries Tutorial - Create a dictionary
# 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