Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dictionary if not found

value = d.get(key)				# Null
value = d.get(key, "empty")		# empty
 
PREVIOUS NEXT
Tagged: #python #dictionary
ADD COMMENT
Topic
Name
4+7 =