Single and Multiple inheritance in Python
Single and Multiple inheritance in Python 1. Single Inheritance # Single Inheritance in Python with Student and Marks Details #-Base class class std_per_det: regno = input(“Enter RegNo:”) name = input(“Enter Name:”) course = input(“Enter Course:”) #Base class Method def show_std(self): print(‘Base Class value:’,self.regno) print(‘Base Class value:’,self.name) print(‘Base Class value:’,self.course) #-Derived class class marks_det(std_per_det): p=int(input(“Enter Physics …