for elem in [1,2,3,4]: print(elem) for a in [1, 2, 3]: print("Next 'a' iteration! a = ", a) for b in [10, 20, 30]: print("Next 'b' iteration! a = ", a, "; b = ", b)
Standard input is empty
1 2 3 4 Next 'a' iteration! a = 1 Next 'b' iteration! a = 1 ; b = 10 Next 'b' iteration! a = 1 ; b = 20 Next 'b' iteration! a = 1 ; b = 30 Next 'a' iteration! a = 2 Next 'b' iteration! a = 2 ; b = 10 Next 'b' iteration! a = 2 ; b = 20 Next 'b' iteration! a = 2 ; b = 30 Next 'a' iteration! a = 3 Next 'b' iteration! a = 3 ; b = 10 Next 'b' iteration! a = 3 ; b = 20 Next 'b' iteration! a = 3 ; b = 30