I know I could use arrays and then this problem could be solved easily.
But I'm curious if there's another solution for my problem. I want to reproduce my variables (var1, var2, var3) inside the print function by concatenating "var" + x (1,2,3)
var1 = "one"
var2 = "two"
var3 = "three"
for x in range(1, 4):
print ("var" + "%d" % (x))
desired output result:
one
two
three
What I get as a result is:
var1
var2
var3