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
Do arrays start at 0 in python?
What are the local and global variables in python?
What's the difference between python and anaconda programming?
Which data type you prefer to implement when deal with seuential data?
What is the best flask or Django
How do you extend in python?
How would you convert a string into lowercase in python?
What is a singleton python?
What is a python module?
Explain join() and split() in python.
What makes python object-oriented?
What does do in python?
What are the types of inheritance in python?
How to open a text file and display its contents?
Is empty string python?