In this video, I show how we were using iterators already long before we formally introduced them in this course. For example, the range() built-in creates objects that behave like iterators (although they are actually not iterators). Other examples of iterators are the objects returned by the reversed(), zip(), and enumerate() built-ins. The commonality among them is that all of them model "rules in memory" that know how to generate a "next" element without generating it yet.
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-075