<AptiCode/>

Question 497: How can you inherit a class?

tcs
wipro
infosys
general
aptitude
classes
python-programming

In Python, class inheritance is achieved by placing the name of the parent class in parentheses after the name of the child class. This creates a relationship where the child class inherits attributes and methods from the parent class.