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 are static methods for?
explain the reduce() function?
What is the difference between uuid and guid?
What is tuple play?
What does pep8 refer to?
What are the 3 types of loops?
how do substitute a pattern in a string using re module
Is there a tool to help find bugs or perform static analysis?
How many items are in a list python?
How is python interpreted language?
How do you add in python?
Are there arrays in python?
Can you modify the maximum depth for a recursive function in Python? If yes how?
How to split a string into a list?
What is with keyword in python?