**kwargs with ineritance?
__init__ or super()?
Question 1 (has to do with inheritance):
class SuperClass:
def __init__(self, key1 = value, key2 = value, key3 = value):
self.var1 = key1
self.var2 = key2
self.var3 = key3
class SubClass(SuperClass):
def __init__(self, wthdoiputhere):
SuperClass.__init__(self, wthdoiputhere)
Is there someway I can use **kwargs in the subclass __init__ so that I can choose which of the key1, key2, key3 variables to pass through?
Edit: I think I found the solution to question 1 here.
Question 2 (came about while searching for an answer to question 1):
Should I even have this line in my subclass
SuperClass.__init__(self, wthdoiputhere)or should I be using this super keyword I've been hearing about every time I google ineritance?
Edit: Solution to question 2 is here (also applies to question 1).
I'll leave this post here in-case it'll be useful for someone else.






Cartoon Clouds
Mountains
Sunrise
Clouds
Green Clouds
None













Help