Intro to Object-Oriented Python
Posted on Jun 14th, 2021
Today, we’ll take a brief survey of classes and objects in Python to get us ready to take on Django.
Today’s topics
- Python Classes
- Instantiating an Object
- Attributes
- Instance Methods
- “Magic” Methods
❓❓❓ Mystery Word Project Retrospective
- Something I learned by doing this project is…
- Something I want to understand better or know more about is…
- In this project, I was happy that I was able to…
🐍 Code Break
🎯 Project
🔖 Resources
- Real Python - Object-Oriented Programming in Python 3
- A Byte of Python: OO
- Python Docs: Classes
- Inheritance and Composition in Python OO
- OO-Programming – This is a chapter from a book called Beyond the Basic Stuff With Python by Al Sweigart. He has written a ton of great books on Python and makes them available to read for free online at inventwithpython.com. You might check out Automate the Boring Stuff with Python. It’s a fantastic beginner book.
- Special Methods (aka magic methods) in the Python Docs
- A Guide to Python’s Magic Methods - great reference, but caution! This was written for Python 2, and so a few things may be different in Python 3.
- Scope of Variables in Python
- 🐛 Debugging Python For Fun & Profit (video)
🦉 Code
- Jupyter Notebooks Notebooks 14-16
- A Python deck of cards, with classes