Do you know about the Magic Methods in Python?
In my last post , I talked about Object-Oriented Programming(OOP). And I specifically talked about a single magic method __init__
which is also called as a constructor method in the OOP terminology.
The magic part of __init__
is that it gets called whenever an object is created automatically. But it is not the only one in any sense. Python provides us wi…
Keep reading with a 7-day free trial
Subscribe to MLWhiz | AI Unwrapped to keep reading this post and get 7 days of free access to the full post archives.