An overview of the walrus operator in Python with some examples in code.
Code used in the video: https://github.com/Ethan-Myles/TheWal...
During the code examples I used Python 3.13.2
Chapters:
00:00 Introduction
00:17 PEP 572
00:55 Criticisms of PEP 572
01:59 The walrus operator
03:10 In a list definition
03:54 In a list comprehension
04:53 In pattern matching
05:23 In processing chunks of a file
06:01 Conclusion