Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Generators and iterators
Which statement correctly distinguishes an iterable from an iterator?
from Generators and iterators
Python 3.14
beginner
1 min
Which statement correctly distinguishes an iterable from an iterator?
An iterable can provide an iterator; an iterator returns itself from iter() and advances through next().
Every iterable is single-pass, while every iterator can restart.
Only generators implement the iterator protocol.
An iterator must support len() and integer indexing.
Check
Ask AI about this kata
Report an error
next kata
Which lines appear, and in what order?
Predict the output
A new version is available
Reload