I have a 2D matrix called A0
A0 = [[0 for x in range(3)] for y in range(3)]
I have a function called newProb
which takes this as an argument and returns another 2D matrix in the following way:-
A1 = newProb(A0)
So, I want to put this code into a loop.
A1 = newProb(A0)
A2 = newProb(A1)
A3 = newProb(A2)
A4 = newProb(A3)
Any help will be appreciated. Thanks!
P.S. I have to make 100 calls to that function in the above way