Google Data Analytics, IBM AI & Meta Marketing — All in One Subscription
Finance Certifications Goldman Sachs & Amazon Teams Trust
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Learn about Python's powerful "Dunder" (double underscore) or Magic Methods in this comprehensive 25-minute tutorial video that transforms how you view Python code. Explore fundamental concepts starting with Python objects and their behavior, then advance to creating custom dunder methods for enhanced functionality. Master essential methods like str() and repr() for object representation, implement arithmetic and comparison operations, understand indexing with obj[x] syntax, work with context managers for resource handling, and harness the power of iterators. Through practical demonstrations and clear explanations, gain the skills to leverage these special methods that make Python objects behave like built-in types, enabling more elegant and pythonic code design.
Syllabus
| Dunder Methods
| Understanding Python Objects
| Writing Your Own Dunder Methods
| str and repr
| Arithmetic and Comparison
| Indexing obj[x] = value
| Context Managers
| Iterators
Taught by
Tech With Tim