As the title indicates, i have a dictionary that looks like similar to this:
dic = {0: 3.2, 1: 3.7, 2: 4.2, 3: 4.7, 4: 5.2, 5: 5.7}
I now want to add or substract an integer value to every value from the dic, but my simple attempt
dic.values() = dic.values() + 1
didn't work, since we use the .values() function here. Is there a fast and simple way to modify every value of an dictionary in Python?