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 / nashiinformaticssolutions

12. Is there an inherent do-while loop in Python?
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 is sphinx python?

945


Which is better c++ or java or python?

902


What is the purpose of the single underscore “_” variable in python?

974


What is a raw input in python?

996


Can a class be static?

918


What is a lambda in coding?

894


What is the difference between Python and Django?

1096


What is meshgrid in python?

856


Is python better than ruby?

822


Does python have inheritance?

858


What are the differences between pyramid, django, and flask?

994


What are range and xrange?

961


What is the difference between uuid and guid?

1018


How to walk through a list in a sorted order without sorting the actual list?

1199


What is a function?

899