Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

boi
boi
14,242 Points

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.