Question #71

Which statement is correct?

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. (

Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅