while (condition): doThis();
#there are 2 ways to make a while loop in python #first way - while True: (#what ever you want in the loop) #second way - while 1: (#what ever you want in the loop)
It contunually does a command while a certain condition is true while (condition) { //code stuffs }
i = 1 while i < 6: print(i) if i == 3: break i += 1
i = 1 while i < 6: print(i) i += 1
i = 0 while i < 6: i += 1 if i == 3: continue print(i)
regular expression
While(Var == soemething){ Do something }