I would like to multiply the keys of this dictionary by 2
d = {2: (1,2), 8: (2,4), 30: (10,3)}
for i in d.keys():
print(i*2)
4
16
60
But d
is still {2: (1,2), 8: (2,4), 30: (10,3)}
How can I get d
to become {4: (1,2), 16: (2,4), 60: (10,3)}
?