First of all I'm a beginner in Python
I have this dictionary:
d={'Name': ('John', 'Mike'),
'Address': ('LA', 'NY')}
Now I want to add more values in the keys like this.
d={'Name': ('John', 'Mike', 'NewName'),
'Address': ('LA', 'NY', 'NewAddr')}
I tried update and append but I think it just works in list / tuples, and also I tried putting it in a list using d.items() and then overwriting the d dictionary but I think its messy and unnecessary?
Is there a direct method for python for doing this?
Simply add a
tuple
toexisting value