Python diccionario setdefault
dict.setdefault(key, default=None)
Amused Antelope
dict.setdefault(key, default=None)
#!/usr/bin/python
dict = {'Name': 'Zara', 'Age': 7}
print "Value : %s" % dict.setdefault('Age', None)
print "Value : %s" % dict.setdefault('Sex', None)