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 the comment tag in Python ?

0 Answers   Microsoft,


Explain about default database with python?

0 Answers  


Explain how can you make a Python Script executable on Unix?

0 Answers  


Tell me the use of the split function in python?

0 Answers  


Difference between @staticmethod and @classmethod in python?

0 Answers  


What is os module will do in python?

0 Answers  


How would you make a python script executable on unix?

0 Answers  


What is the use of dictionary in python?

0 Answers  


Is javascript easier than python?

0 Answers  


What is pandas?

0 Answers  


What is mro in python?

0 Answers  


How do you reverse any string in python?

0 Answers  


Categories