0 of 10 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
You have the potential to do better! 🙂
If you found a concept confusing on this page then please leave a comment below asking for clarity.
Try re-reading the tutorial on this page before you retake this quiz!
Good work on clearing this quiz!
Outstanding work! You have mastered this lesson. Onward to the next one!
Iterable is an ______, which one can iterate over.
An iterator can be created from an iterable by using the function iter().
Function ‘iterable’ will return _________, if the object ‘obj’ is an iterable.
The iterator next method should return the next value for the iterable.
__________ method that is called on initialization of an iterator.
What will be output of the following code?
print(“List Iteration”)
l = [“leeks”, “and”, “potatoes”]
for i in l:
    print(i)
We use the next() function to manually iterate through all the items of an iterator.
When we reach the end and there is no more data to be returned, it will raise___________
The for loop can iterate over any iterable.
The advantage of using iterators is that they save _______________