I want to define a number of variables that depends on a certain k. the var name depends on the number of the iteration for example:
for i in range(1,k):
th(i) = i
result should be: th1=1, th2=2, th3=3...
I tried:
for i in range(1,k):
th+str(i) = i
didn't work.
any suggestion?