The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #71
An iterable is an object which one can iterate over. An iterator is an object which is used to iterate over an iterable object. All iterators are iterables, but not all iterables are iterators. For instance, a list is an iterable but it is not an iterator. Using the method iter() on a list will return an iterator. (geeksforgeeks.org/python-difference-iterable-iterator)
Which statement is correct?
— The Python Quiz (@thepythonquiz) October 4, 2020
Every iterable is also an iterator.
Every iterator is also an iterable.#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅