I am new in python and I was wondering the following. I have two matrices g1 and g2 and I would like to run a for loop for all the values of g1 and then g2.
I initially thought I could do:
for A in g1:
.....
for A in g2:
.....
But I was wondering if there is a way to run both at the same for loop. Eg. I tried this but it didn't work
for A in g1,g2: