Answer Posted / nashiinformaticssolutions
12. Is there an inherent do-while loop in Python?
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
Write a program to check for prime number?
How many hours learn python?
What does ** (double star) and * (star) do for python parameters?
Why does it say none in python?
which statement is used to take a decision based on the comparison?
What is the use of the break statement?
What is the output of print str + “test” if str = ‘hello world!’?
What are accessors, mutators, @property?
What does mean in python?
How do you sort a list alphabetically in python with sort function?
How do you create a list which is a reverse version on another list in python?
What does append () do in python?
What is the shortest method to open a text file and display its content?
What does static pressure mean?
Why do we use join() function in python?