Python Dunder Methods: What __init__ and __str__ Really Mean
“Dunder” is short for “Double Underscore.” Dunder methods are special “magic” methods that Python reserves for its own use. You don’t call them directly, but…

“Dunder” is short for “Double Underscore.” Dunder methods are special “magic” methods that Python reserves for its own use. You don’t call them directly, but…

In our Guide to OOP, we created a Dog class. But what if we also need a Cat class? They both have names and ages….

You’ve learned functions, loops, and variables. You can write scripts. But to build large applications (like with Django), you need a better way to organise…
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
You can find more information about our Cookie Policy and Privacy Policy.