Working on a problem where I have to update a dictionary value.
For example, I have a dictionary with key value pairs that look like this:
{(0,0): some value, (5,0): some value, (12,3): some value, ...}
I am trying to use an if statement within a for loop that iterates through the 'names' of the key value pairs - (0,0), (5,0), (12,3), etc. - to see if the 'name' I'm looking for exists in the dictionary. If it does, I want to replace the value of that key with a different value.
Sort of new to python so if this seems confusing, or if there is an obvious solution you know why.