How to emulate a do-while loop in Python?
Answers
Answered by
2
Python doesn't have do-while loop. But we can create a program like this. The do while loop is used to check condition after executing the statement. It is like while loop but it is executed at least once.
Hope this will help you !!!
Answered by
0
Answer:
hey mate!!
here is Ur answer
There are two scenarios in which a loop terminates:
There are two scenarios in which a loop terminates:The loop condition is no longer true/false (depending on the type of loop).
There are two scenarios in which a loop terminates:The loop condition is no longer true/false (depending on the type of loop).A break statement is executed from within the code in the loop body.
hope it will help you...
#shruti
Similar questions