Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Dictionary Check Key Exist

hh = {"a":3, "b":4, "c":5}

# check if a key exists

print("b" in hh)
# True
Source by xahlee.info #
 
PREVIOUS NEXT
Tagged: #Dictionary #Check #Key #Exist
ADD COMMENT
Topic
Name
4+8 =