Answers for "how to repeat code in python until a condition is met"

0

how to repeat code in python until a condition is met

a = 1
b = 1
while (a<10):
  print ('Iteration',a)
  a = a + 1
  b = b + 1
  if (b == 4):
    break
print ('While loop terminated')
Posted by: Guest on August-17-2020

Code answers related to "how to repeat code in python until a condition is met"

Python Answers by Framework

Browse Popular Code Answers by Language