0

Do you have practice problems about python's while, continue, and break?

Please give me some exercises about these topics in python so I can master the coding process. Thank you.

26th Jun 2022, 2:02 AM
Dienel Manipol
Dienel Manipol - avatar
2 Answers
+ 2
while, continue and break in just one program This program will print only odd numbers and break point should be 25 i = 0 while True: i = int(input()) if i % 2 == 0: continue if i % 25 == 0: break print (i)
26th Jun 2022, 4:58 AM
AÍąJ
AÍąJ - avatar
0
Thank you for your response. This is a great help.
26th Jun 2022, 3:52 AM
Dienel Manipol
Dienel Manipol - avatar