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 does float () do in python?

932


Why do we need operator overloading?

886


What are the differences in list and tuple?

1122


Is python completely free?

897


What is a script mode?

1000


How do you write if else in python?

1003


Can constructor be private?

839


What is @staticmethod?

958


Name and explain the three magic methods of python that are used in the construction and initialization of custom objects?

800


How do you write comments in python?

928


How can you declare the variables function in python?

878


Does apple use python?

915


Does python have overloading?

865


How do you debug a program in python? Is it possible to step through python code?

960


What is argument in a function?

1153