I have a list of tuples:
my_list =
[(0.12497007846832275, 0.37186527252197266, 0.9681450128555298, 0.5542989373207092),
(0.18757864832878113, 0.6171307563781738, 0.8482183218002319, 0.8088157176971436),
(0.06923380494117737, 0.2164008915424347, 0.991775393486023, 0.41364166140556335)]
I want to multiply each value to 100 and then reassign them in the same order. But doing below, it throws error:
for i in range(len(my_list)):
for j in range(4):
my_list[i][j] = 100 * my_list[i][j]
TypeError: 'tuple' object does not support item assignment
How can I modify these values and save them in their places?