Lists are mutable arrays, and bytearrays are mutable arrays of bytes. We examine how they work, the syntax surrounding them, as well as list comprehensions, functions and methods. We talk about queues and stacks as well. Finally, we talk about the implications of passing mutable values into functions in Python, comparing it with similar behavior in C/C++ and Java.
Join me on Discord: / discord
Support me by buying from Amazon through my affiliate link: https://amzn.to/2FBNVwA
Here's my Patreon account if you want to give me money: / realphysics
Other ways to support Real Physics: • How to Support Real Physics
Playlist: • Theory of Python
Thank you!