Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python diccionario setdefault

#!/usr/bin/python

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

print "Value : %s" %  dict.setdefault('Age', None)
print "Value : %s" %  dict.setdefault('Sex', None)
Source by www.w3big.com #
 
PREVIOUS NEXT
Tagged: #python #diccionario #setdefault
ADD COMMENT
Topic
Name
4+1 =