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

Why python is the best?

844


What are its benefits of flask?

846


What do u mean by instance?

796


How to remove leading whitespaces from a string in the python?

920


What are operators?

1581


What made you to choose python as a programming language?

839


Is there any way to kill a thread in python?

863


What is the use of python interpreter?

799


What is meta class in python?

893


What is the best python interpreter?

853


When would you use a break statement in a for loop?

804


Python documentation is called?

884


What is slug in python?

840


How many items are in a list python?

859


What does the list comprehension do?

869