Computer Science, asked by pinkisinha30, 7 months ago

Write a program to implement
while loop with continue in
Python.​

Answers

Answered by ayushop22
1

Answer:

please mark me as brainlist

Explanation:

1 n = 5 2 while n > 0: 3 n -= 1 4 if n == 2: 5 continue 6 print(n) 7 print('Loop ended. ') The output of continue.py looks like this: C:\Users\john\Documents>python continue.py 4 3 1 0 Loop ended.

Similar questions