A

Admin • 833.24K Points
Coach

Q. Which of the following is a private variable in Python by convention?

  • (A) _var
  • (B) __var
  • (C) var_
  • (D) var
  • Correct Answer - Option(B)
  • Views: 44
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Double underscore before a variable name indicates it is private.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.