Core: learn it Step 10 of 16 on the Python Developer roadmap

Inheritance

A child class can reuse and extend a parent class, for example Teacher and Student both inheriting from Person. Use it when classes truly share behaviour, not just to save a few lines.

Learn it on JeliScript

More in Classes and objects

See it on the Python Developer roadmap