Here is my script:
# I have 100 variables
x0 = 3.14
x1 = 2.72
x2 = 1.41
x3 = 2.33
.... (omit this part)
x100 = 7.77
# xi corresponds to the value that the index i of a list needs to subtract,
# now I want to loop through the list
for i in range(100):
lst[i] -= 'x{}'.format(i)
This clearly won't work, since the variable is not a string. So how should I string formatting a variable?