educative.io

Educative

Is the the `self` parameter used with 'super()' when __init__?

In the OOP Module of Python for Programmers course
(Inheritance Section Question 3)

The Ans:
When calling the parent initializer in the child initializer using super(), the self parameter is used.

This is not the correct answer if we use super(), the self parameter is not used, right?


Type your question above this line.

Course: https://www.educative.io/collection/10370001/6201068373409792
Lesson: https://www.educative.io/collection/page/10370001/6201068373409792/5124306656821248

Hi @Neha_Parakh. Yes, you are right. It was a typo, and it has been fixed. Thank you so much for acknowledging us.

Happy Learning :smiley: