Comparing iterators with iterables

Опубликовано: 18 Апрель 2026
на канале: Alexander Hess - Pythonista
318
9

In this video, I compare iterators (= "rules in memory") with iterables (= all objects over which we can loop). Iterators are always also iterables but the converse is not true. We see how the built-in iter() function creates an iterator out of an iterable argument. The iterator is then the "manager" of the iteration logic.

PYTHON BOOK
The lecture is based on the free book "Introduction to Python & Programming".
Get it on GitHub: https://github.com/webartifex/intro-t...

SUBSCRIBE
If you like the way I teach and talk about programming and data science, subscribe to this channel.
The videos focus on coding courses and tutorials aimed at managers and students of business administration, enabling them to make better decisions with analyses done in code.

INSTRUCTOR
Alexander Hess, PhD Student
WHU - Otto Beisheim School of Management, Vallendar, Germany

CONTACT
GitHub: https://github.com/webartifex
LinkedIn:   / webartifex  
XING: https://xing.to/webartifex
Facebook:   / webartifex  
Instagram:   / webartifex  
Website: http://www.webartifex.biz
YouTube:    / webartifex  

wa-vid-074