r/PythonLearning • u/aashish_soni5 • Jun 28 '26
Showcase Day 17 Python Learning
practicing class & dunder method
if follow my previous day note then most of my brother & sister already know what is the class
class work like local apartment which have different room called function use __init__() to connect outside world
and like __init__ the Construction type there is more
- dunder method which used for to tell Python what to do
like __add__ Arithmetic type for +
same __sub__, __mul__, __truediv__, __pow__, etc. + r versions (__radd__) and more
68
Upvotes




•
u/Sea-Ad7805 Jun 28 '26
Run this program in Memory Graph Web Debugger to see the program state change step by step.