Computer Science - Object-Oriented Programming - Encapsulation - Public, Protected, Private
5 steps. Step 1 'The Problem': class BankAccount: def __init__(self): self.balance = 1000. ANYONE can do: account.balance = 999999. No validation! No protection! Step 2 'Python's Convention': self.public_attr - anyone can access. self._protected_attr - 'please don't touch' (convention only). self.__