A pretty basic question...was wondering if there is a way to easily substitute part of a variable name with the looping index?
i.e.
value_1 = 1
value_2 = 2
value_3 = 3
for i in range (1,4):
print value_i
Obviously the above code wouldn't work...but is it possible to substitute the number part of variable name with index i in Python?
Thank you.