A

Admin • 833.24K Points
Coach

Q. What does the `self` keyword in a class method refer to?

  • (A) The parent class
  • (B) The object itself
  • (C) The class
  • (D) A local variable
  • Correct Answer - Option(B)
  • Views: 101
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`self` represents the instance (object) of the class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.