Welcome to the Treehouse Community
Looking to learn something new?
Why we don't have to provide the argument self? (when using the super() function)
example from video:
Why aren't we passing the self argument as well?
Chris FreemanTreehouse Moderator 68,167 Points
Good question! When calling a method, the first argument of the method definition has been already assigned such that
self points to the current instance of the class. This is done when the instance is created. When
super().__init__() is run, it is calling the parent
__init__() method that has been attached to this instance (with
self previous devined).
Post back if you need more help.