Answer Posted / glibwaresoftsolutions
Python does not have a built-in `do-while` loop. However, you can simulate it using a `while` loop with a condition that ensures the loop runs at least once.
Example:
python
while True:
# code to run
if not condition:
break
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is static in python?
How do you clear a python shell?
What is %s %d in python?
What does __ init __ mean in python?
What is r regex?
What's a negative index?
What is setup py in python?
What is python db api?
How will you get a 10 digit zero-padded number from an original number?
What if you want to toggle case for a python string?
What does slicing mean in python?
What does the term ‘monkey patching’ refers to in python?
What is yield in python?
Is java or python more useful?
How to count the occurrences of a perticular element in the list?