Python private variables
# Make variables private by adding two underscored (_)
# in front of variable names.
# However, this is ***JUST A CONVENSION***.
# Private variables doesn't exist in Python. __var is still accesible.
# Example:
class User(object):
def __init__(self, name, password):
self.name = name # Public variable
self.__password = password # Private variable