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

What are python iterators?

Answer Posted / glibwaresoftsolutions

An object that lets you go through a collection's items (such lists, tuples, or dictionaries) one at a time is called an iterator in Python. An iterator implements two methods: __next__(), which returns the subsequent item in the sequence and raises StopIteration when the sequence is exhausted, and __iter__(), which returns the iterator object itself.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does python support interfaces like in java?

1187


In python, how do copy a file?

1043


How will you do debugging in python?

981


What is the __ init __ method used for?

939


What is python xrange?

969


How do you implement json given that python is best suited for the server-side application?

936


What is a dataframe in python?

1072


Explain whats flask?

981


How fast can you learn python?

957


What is @staticmethod?

965


What is the language from which Python has got its features or derived its features?

1053


What do you understand by the term deep copy?

842


Which linux is best for python programming?

1123


How do you disconnect from the database?

1044


Does python have polymorphism?

857