Explanation: as python has no concept of private variables, leading underscores are used to indicate variables that must not be accessed from outside the class.
Q. Why are local variable names beginning with an underscore discouraged?
β
Correct Answer: (A)
they are used to indicate a private variables of a class
Explanation by: Mr. Dubey
as python has no concept of private variables, leading underscores are used to indicate variables that must not be accessed from outside the class.
Discussion
Question Analytics
425
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
84%
Success Rate