✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Atzīmē pareizo atbildi!
Kāda būs acc2.balance vērtība pēc transfer metodes izsaukšanas ?
class BankAccount: def __init__(self, balance): self.balance = balance def transfer(self, other_account, amount): self.balance -= amount other_account.balance += amountacc1 = BankAccount(100)acc2 = BankAccount(50)acc1.transfer(acc2, 30)