Python Programming - Encapsulation - Discussion
Discussion Forum : Encapsulation - General Questions (Q.No. 11)
11.
What is the purpose of the single underscore prefix in Python, as in
_variable
?
Answer: Option
Explanation:
The single underscore prefix in Python, as in
_variable
, is used to indicate a protected variable.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers