πŸ“Š Python
Q. Which of the following is a private variable in Python by convention?
  • (A) _var
  • (B) __var
  • (C) var_
  • (D) var
πŸ’¬ Discuss
βœ… Correct Answer: (B) __var

Explanation: Double underscore before a variable name indicates it is private.

Explanation by: Mr. Dubey
Double underscore before a variable name indicates it is private.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate