I have a multiple 2D arrays with name temp1, temp2, temp3... etc
temp1 = [[7, 2, 4],
[5, 0, 6],
[8, 3, 1]]
temp2 = [[1, 1, 1],
[1, 1, 1],
[1, 1, 1]]
temp3 = [[2, 2, 2],
[2, 2, 2],
[2, 2, 2]]
I want to run a for loop that will return only some of the arrays depending on the range of i. I am thinking of something like
for i in range(1,3):
arrayName = ("temp" + str(i))
print(arrayName)
where print(arrayName) prints out the actual array instead of a string
Any help is appreciated!