ct_dict = {
'fr': ['55410', '94560', '52533', '63040', '52533'],
'de': ['73546', '64090', '60938', '75648', '60938']}
How can i change the values inside the dictionary from string to integer? For example: ['55410', '94560', '52533', '63040', '52533']
to [55410, 94560, 52533, 63040, 52533]
I tried using 2 for loops with update method but got this error:
RuntimeError: dictionary changed size during iteration
Code that got the error:
for i in ct_dict:
for j in ct_dict[i]:
ct_dict.update({j:int(j)})