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 trialFlore W
4,744 PointsWhat about the *args?
In the "Multiple Superclasses" video, we have a child class called Sneaky:
class Sneaky:
sneaky = True
def __init__(self, sneaky = True, *args, **kwargs):
super().__init__(*args, **kwargs)
self.sneaky = sneaky
The super parent is a class named Character:
class Character:
def __init__(self, **kwargs):
for key, value in kwargs.items():
setattr(self, key, value)
However there is nothing related to *args, so my question is - is there something missing in Character, and how could we change it to pass on *args?
Thanks for the help!