Idiomatic Python: The two-argument version of `iter()`

Опубликовано: 08 Октябрь 2024
на канале: MathByte Academy
2,205
88

This video is the first of many looking at how to write idiomatic Python (aka writing Pythonic code).
In this video, we look at the `iter()` function and how it can be used to simplify a specific pattern of reading data in chunks (from files, sockets, etc)

#mathbyteacademy #python

Code for this Video
================
Available in GitHub blog repo: https://github.com/fbaptiste/python-blog
Direct link: https://tinyurl.com/5x9p4u5v

My Python Courses
=================

Python 3 Fundamentals (introduction to Python)
https://www.udemy.com/course/python3-...

Python 3 Deep Dive (Part 1 - Functional)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 2 - Iteration, Generators)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 3 - Hash Maps)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 4 - OOP)
https://www.udemy.com/course/python-3...