
Christopher C. answered 05/16/18
Tutor
4.9
(21)
Math/Computer Science/Programming
You can't. Python doesn't have member access semantics. In Python you can access member variables from outside the class but you often shouldn't.
With that said, the convention for "private" variables is to prepend an underscore to their names. 'my_private-variable' becomes '_my_private-variable"