Como armazenar a variável no dicionário
>>> mydict = {'a': 'hello', 'b': 'world'}
>>> for x in mydict:
... val = mydict[x]
... mydict[x] = val.upper()
... print('Changed what', x, 'points to: from', val, 'to', mydict[x])
Changed what b points to: from world to WORLD
Changed what a points to: from hello to HELLO
Helpful Hawk