Hierarchical Inheritance In Python Program