Python super().__init__: Passing arguments to the parent class

Python super().__init__: Passing arguments to the parent class

The most common place we use super() in Python? __init__:

class Child(Parent):
    def __init__(self, a, b, c):
        super().__init__(a, b)  # Parent sets a + b
        self.c = c              # Child sets c
c = Child(10, 20, 30)
print(vars(c))  # {'a':10, 'b':20, 'c':30}