+ 1

break and continue while loop

float = 0 while True: float += 1 if float == 5: print('skipping 5') continue if float > 11: print('breaking') break guys i am getting error in this code. somebody help me. please????

15th Mar 2019, 5:07 PM
SANDESH ATHAWALE
SANDESH ATHAWALE - avatar
2 ответов
+ 2
// There is not the errors in this code, you use "break" keyword to stop a loop and a "continue" keyword to continue the loop.
15th Mar 2019, 6:06 PM
program
program - avatar
0
Thanks
15th Mar 2019, 6:22 PM
SANDESH ATHAWALE
SANDESH ATHAWALE - avatar