Python - Encapsulation and Data Protection
Identify the error in this code related to encapsulation:
class BankAccount:
def __init__(self):
self.__balance = 100
def deposit(self, amount):
self.__balance += amount
acc = BankAccount()
acc.__balance += 50
print(acc.__balance)