Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

diccionario setdefault

dict = {'Name': 'Zara', 'Age': 7}

print "Value : %s" %  dict.setdefault('Age', None)
print "Value : %s" %  dict.setdefault('Sex', None)
 
PREVIOUS NEXT
Tagged: #diccionario #setdefault
ADD COMMENT
Topic
Name
8+8 =