Created
October 1, 2018 17:50
-
-
Save ardenn/2c119db50690ba78f1805106b75b19ac to your computer and use it in GitHub Desktop.
Python Dictionaries Tutorial - Accessing items
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
# 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