Advanced unpacking in Python "for" loops

Published: 20 February 2024
on channel: Python and Pandas with Reuven Lerner
1,490
80

Want to iterate over a complex data structure? You can use a "for" loop -- and frequently, you can integrate unpacking into the loop. In this video, I show you how unpacking works in loops, and how you can use Python syntax to do some odd (but powerful) things.

The Jupyter notebook used in this video, and all of my videos, are at https://github.com/reuven/youTube-not... .