I'd like to know if it's possible to update variables, from a dictionary. In the example, I do not want to set dictionary value to '8', but I'd like to set 'aa' viriable to '8'.
Is it possible?
aa = 1
bb = 2
dct = {'a':aa, 'b':bb}
for k in dct:
myVar = dct[k]
myVar = 8
print aa
print bb
# 1
# 2