When it comes to creating new classes, you can call the type() function directly or use the class statement. All instances are connected to the class they came from, and their namespaces falls back to the class. I also discuss when it is appropriate to use classes in Python and when it is not.
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!