In Python instance methods use __________ as first default parameter.
2023
In Python instance methods use __________ as first default parameter.
- A.
primary
- B.
secondary
- C.
self
- D.
selfie
Attempted by 96 students.
Show answer & explanation
Correct answer: C
In Python, instance methods include self as the first parameter, which represents the current object instance.
It allows access to instance variables and methods, making it essential for object-oriented programming.