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
Why python is the best?
What are its benefits of flask?
What do u mean by instance?
How to remove leading whitespaces from a string in the python?
What are operators?
What made you to choose python as a programming language?
Is there any way to kill a thread in python?
What is the use of python interpreter?
What is meta class in python?
What is the best python interpreter?
When would you use a break statement in a for loop?
Python documentation is called?
What is slug in python?
How many items are in a list python?
What does the list comprehension do?