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

How do I copy an object in python?

990


Mention the concept used in python for memory managing

759


What do you understand by the term deep copy?

751


How are inheritance and overriding methods are related?

832


Explain ternary operator in python?

778


What is super in python class?

833


How would you define a block in python?

983


How do you calculate percentiles with python/ numpy?

866


How do you extend in python?

752


What is kwargs in python?

826


Are uuids sequential?

721


Do you know how memory is managed in python?

881


What is the python interactive console or python shell?

879


Which compiler is best for python?

821


How can you declare the variables function in python?

794