while1.py 182 B

123456789101112
  1. # basic while loop
  2. x = 0
  3. while x < 2:
  4. y = 0
  5. while y < 2:
  6. z = 0
  7. while z < 2:
  8. z = z + 1
  9. print(x, y, z)
  10. y = y + 1
  11. x = x + 1