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

Explain the use of *args, **kwargs?

0 Answers  


Does python sleep use cpu?

0 Answers  


How can you share variables across modules?

0 Answers  


What is the optional statement used in a try except statement in Python?

0 Answers  


What is instance of a class?

0 Answers  


What does input () do in python?

0 Answers  


Describe how to send mail from a Python script.

1 Answers  


Do you know what is the key difference between a list and the tuple?

0 Answers  


What is __ name __ in python?

0 Answers  


What is uuid format?

0 Answers  


Why pandas is used in python?

0 Answers  


How to open a text file and display its contents?

0 Answers  


Categories