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 is static in python?

895


How do you clear a python shell?

869


What is %s %d in python?

833


What does __ init __ mean in python?

821


What is r regex?

845


What's a negative index?

880


What is setup py in python?

932


What is python db api?

884


How will you get a 10 digit zero-padded number from an original number?

848


What if you want to toggle case for a python string?

879


What does slicing mean in python?

823


What does the term ‘monkey patching’ refers to in python?

840


What is yield in python?

851


Is java or python more useful?

848


How to count the occurrences of a perticular element in the list?

961