Answers for "python diccionario setdefault"

0

python diccionario setdefault

dict.setdefault(key, default=None)
Posted by: Guest on May-16-2021
0

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)
Posted by: Guest on May-16-2021

Code answers related to "python diccionario setdefault"

Python Answers by Framework

Browse Popular Code Answers by Language