Lets say I want to produce a number of variables, but the actual amount I am unaware of (as may depend on the input, etc.), the only thing differentiating the variables from one another is a piece of information in their identifier. Is there any way that this is possible in Python 3?
Coded example (using f-strings):
for i in range(3):
f'variable{i}' = i
print (variable0)
print (variable1)
print (variable2)
Meaning the output of this program would be:
0
1
2