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...


Difference between for loop and while loop in Python



Difference between for loop and while loop in Python..

Answer / nashiinformaticssolutions

It is common practice to iterate through the items of different collection types, including List, Tuple, Set, and Dictionary, using the "for" loop. Developers employ a "for" loop in which the conditions are both the beginning and the conclusion. In contrast, the true looping feature found in all other programming languages is the "while" loop. Python while loops are used by programmers when they only have end conditions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is break in python?

0 Answers  


What are advantages and disadvantages of python?

0 Answers  


What is metadata in python?

0 Answers  


Python list of lists, changes reflected across sublists unexpectedly

0 Answers  


Explain about negative indexing?

0 Answers  


What is django python?

0 Answers  


What are python decorators? 8) What is the difference ...

0 Answers  


What does != Mean in python 3?

0 Answers  


Will python work multiple inheritance?

0 Answers  


Mention at least 3-4 benefits of using python over the other scripting languages such as javascript.

0 Answers  


How long does it take to learn python?

0 Answers  


What is the dogpile effect?

0 Answers  


Categories