Skip to content

Instantly share code, notes, and snippets.

@ardenn
Created October 1, 2018 17:50
Show Gist options
  • Save ardenn/2c119db50690ba78f1805106b75b19ac to your computer and use it in GitHub Desktop.
Save ardenn/2c119db50690ba78f1805106b75b19ac to your computer and use it in GitHub Desktop.
Python Dictionaries Tutorial - Accessing items
# Check existence of title
"title" in job2 # returns True
"salary" in job2 # returns False
# Using key indexing
job2["title"] # return 'Marketing & Business Development Manager'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment