Python interview question #33: Iterator protocol

Veröffentlicht am: 27 April 2025
auf dem Kanal: Python and Pandas with Reuven Lerner
177
8

How do "for" loops work in Python? They use the "iterator protocol." What is that, and how does it work?

In this video, I walk you through the protocol, how it works, and how we can write our own objects that implement the protocol. If you're asked to make a class iterable in a Python job interview -- or if you're just asked what happens when you run a "for" loop -- you'll be prepared.

To download the Jupyter notebooks I used in this course, go to https://AcePythonInterviews.com .


Auf dieser Seite können Sie das Online-Video Python interview question #33: Iterator protocol mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Python and Pandas with Reuven Lerner 27 April 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 177 Mal angesehen und es wurde von 8 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!