If you're a Python developer exploring elegant ways to customize or control subclass behavior without reaching for metaclasses, let me introduce you to one of Python's hidden gems: __init_subclass__.
A cool Python method I learned about recently, thanks to a poster on StackOverflow, is the __init__subclass__ method. If you define this method on a parent class, it will get called every time you ...
#Sometimes we want to initiate more information than our parent Class can handle. To elaborate on #this, lets say we want to pass in 1 more attribute (apart from the first, last, and pay attributes) ...