So I have a dictionary, and I want to update all the values in the dictionary with a for loop. I assume it would go something like this:
fruits = {"apple" : 2, "banana" : 1, "orange" : 4}
for value in fruits:
value += 2
print(fruits)
I expect it to print {"apple" : 4, "banana" : 3, "orange" : 6}, but instead it just prints the original list. I am not quite sure how to fix this, so any insight would be greatly appreciated.