fork download
  1. for elem in [1,2,3,4]:
  2. print(elem)
  3.  
  4. for a in [1, 2, 3]:
  5. print("Next 'a' iteration! a = ", a)
  6. for b in [10, 20, 30]:
  7. print("Next 'b' iteration! a = ", a, "; b = ", b)
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
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