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 does float () do in python?
Why do we need operator overloading?
What are the differences in list and tuple?
Is python completely free?
What is a script mode?
How do you write if else in python?
Can constructor be private?
What is @staticmethod?
Name and explain the three magic methods of python that are used in the construction and initialization of custom objects?
How do you write comments in python?
How can you declare the variables function in python?
Does apple use python?
Does python have overloading?
How do you debug a program in python? Is it possible to step through python code?
What is argument in a function?