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

How is the Implementation of Pythons dictionaries done?

862


Do you know what the difference between lists and tuples is? Can you give

862


Tell me the use of // operator in python?

808


Why do lambda forms in python not have the statements?

933


How to convert a list into a set?

831


What does the function zip() do?

803


Explain help() and dir() functions in python?

860


What are the built-in types available in python?

758


What is the most popular ide for python?

842


Do I need to learn c++ before python?

862


What is the tool used to check python code standards?

859


Why is not__getattr__invoked when attr==’__str__’?

934


How can you unsign or delete variable in python?

764


What is web scraping?

775


What is type() and id() will do?

856