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 / hr@tgksolutions.com

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

Are functions objects in python?

869


Is all the memory freed when python exits?

1039


Write the function f() ?

869


Is java or python more useful?

852


How does python handle memory management?

1693


How is python used in business?

900


What’s your preferred text editor?

983


What is a lambda form?

937


Can python be used for web client and web server side programming? And which one is best suited to python?

842


Tell me what is negative index in python?

1019


What is form feed in python?

811


How do you use isalpha in python?

985


Is python dict a hashmap?

818


Is python can be compatible with command prompt?

1091


What are the disadvantages of the python?

987