1. Home
  2. Data Science
  3. Python
  4. What is the difference between an iterable and an iterator…

Added 25 Nov 2026

What is the difference between an iterable and an iterator in Python?

  1. They are the same
  2. An iterable implements __next__
  3. Iterators are always lists
  4. An iterator implements __next__; an iterable provides __iter__ Correct answer

Correct answer

D. An iterator implements __next__; an iterable provides __iter__

6 views

MCQSEXAM

Explanation

Iterables return an iterator from __iter__; iterators produce values with __next__.

Reference

Asked in: Python Interview Advanced Python

https://docs.python.org/3/library/index.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs