Assume we have the following transfer_from method: def…
Assume we have the following transfer_from method: def transfer_from(self, amount, to_account): self.withdraw(amount) to_account.deposit(amount) In the main function, assume we have the code below. If we want to transfer 100.00 from acct2 to acct1, what new statement should we write? acct1 = BankAccount(123, ‘Joe’, ‘Smith’) acct1.deposit(500.00) acct2 = BankAccount(234, ‘Jane’, ‘Doe’) acct2.deposit(500.00)
Read Details