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

Mention the use of the split function in Python?

812


Tell me what are the tools that help to find bugs or perform static analysis?

804


How to implement the decorator function, using dollar ()?

917


What is a python egg?

794


Does range start at 0 python?

776


Should I learn r or python first?

898


Explain the use of // operator in python?

917


What is the difference between abs () and fabs ()?

892


Is it worth to learn python in 2019?

762


What is django python?

865


Explain python is one line?

757


What happens when you execute python == python?

961


You mentioned pypi in your previous answer. Can you elaborate?

837


Name the file-related modules in python?

844


How do you append to a list in python?

751