Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Object-Oriented Python Advanced Objects Frustration

What is a subclass in Python

Hello, I've been slowly working my way through the Object-Oriented Python class in the beginning track. The challenge that I'm has me confused. For starters, it sounds like it is building off of the previous challenge, which it's not. It also sounds like I should already be looking at some code to understand the situation and no started code is provided. In addition, I am unfamiliar with the term subclass in a Python context. Did I totally blank on video and if so does anyone know which one I need to go back and review to know what a subclass is in Python? Thanks

frustration.py
class Liar:

1 Answer

A Subclass is a child Class

So to put it in context

class Liar(list): #  👈 The Subclass or Child Class "Liar" is inheriting from its parent class "list".

If you need help with something else, feel free to ask for help. I would highly recommend rewatching OOP course as it trips all of us.