Beginner Python
Q31 / 101

What is the first parameter of an instance method conventionally called?

Correct! Well done.

Incorrect.

The correct answer is C) self

C

Correct Answer

self

Explanation

By convention, the first parameter of instance methods is named self and refers to the current instance. cls is used for class methods.

Progress
31/101