Загрузка данных


class BankAccount:
    def __init__(self, owner, balance=0):
        self.owner, self.balance = owner, balance
    def deposit(self, v): self.balance += v
    def withdraw(self, v):
        if v <= self.balance: self.balance -= v
    def transfer(self, other, v):
        if v <= self.balance: self.withdraw(v); other.deposit(v)
    def show(self): print(self.owner, self.balance)

# Данные для запуска:
a = BankAccount("Ivan", 1000)
b = BankAccount("Oleg", 0)
a.transfer(b, 300)
a.show()
b.show()