Daniel> How can I replace all None values with the string 'Null' in a Daniel> dictionary?
a = {'item1': 45, 'item2': None} for key in a: if a[key] is None: a[key] = "Null" Skip -- http://mail.python.org/mailman/listinfo/python-list
Daniel> How can I replace all None values with the string 'Null' in a Daniel> dictionary?
a = {'item1': 45, 'item2': None} for key in a: if a[key] is None: a[key] = "Null" Skip -- http://mail.python.org/mailman/listinfo/python-list