Private members are intended to be accessible only within the class they are defined.
To define a private member, you prefix its name with double underscores (__).
class MyClass:
def __init__(self):
self.__private_var = 42
def __private_method(self):
print("This is a private method")