Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is there an inherent do-while loop in Python?

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


Please Help Members By Posting Answers For Below Questions

What are static methods for?

938


explain the reduce() function?

860


What is the difference between uuid and guid?

972


What is tuple play?

818


What does pep8 refer to?

823


What are the 3 types of loops?

885


how do substitute a pattern in a string using re module

886


Is there a tool to help find bugs or perform static analysis?

839


How many items are in a list python?

895


How is python interpreted language?

816


How do you add in python?

832


Are there arrays in python?

823


Can you modify the maximum depth for a recursive function in Python? If yes how?

824


How to split a string into a list?

1095


What is with keyword in python?

848