Contribute Media
A thank you to everyone who makes this possible: Read More

Inheriting one class from another


To inherit your class from another class, put parentheses after the class name and list parent classes. We allow multiple inheritance in Python, but we usually prefer single class inheritance.


Improve this page