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.

Hanwen Zhang
20,084 PointsHelp, subclass in Python, I don't see the parent class in the video
class FilledList(list): class JavaScriptObject(dict):
There are two class code in the video but I don't see where are the class list and class dict, where do they come from and how do they use as a parent class?
1 Answer

Peter Vann
36,242 PointsHi Hanwen!
Lists and dictionaries (dict) are native Python data type/structures.
More info:
https://docs.python.org/3/tutorial/datastructures.html
https://thomas-cokelaer.info/tutorials/python/data_structures.html
https://www.w3schools.com/python/python_lists.asp
https://www.w3schools.com/python/python_dictionaries.asp
Further info:
https://www.w3schools.com/python/python_tuples.asp
https://www.w3schools.com/python/python_sets.asp
I hope that helps.
Stay safe and happy coding!
Hanwen Zhang
20,084 PointsHanwen Zhang
20,084 PointsThank you peter