πŸ“Š Python
Q. How do you define a private variable in Python?
  • (A) Using `private` keyword
  • (B) Using `#private` comment
  • (C) Prefix with one underscore
  • (D) Prefix with two underscores
πŸ’¬ Discuss
βœ… Correct Answer: (D) Prefix with two underscores

Explanation: Variables prefixed with `__` are considered private in Python.

Explanation by: Mr. Dubey
Variables prefixed with `__` are considered private in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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