I want to print out variables named a1, a2, a3, ... etc. using for loop in python.
Is there a way to implement this? For example,
a0 = 3
a1 = 4
a2 = 5
for i in range(3):
tmps = 'a' + '%d' %i
print(tmps)
This will only print out
a0
a1
a2
I want my code to print out 3 4 5