Stuck at magic object 76.2
Alright so I've reach magic object but hot so confused at this topic but decided to push through this topic and was stuck at this question: The __add__ method allows for the definition of a custom behavior for the + operator in our class. The provided code is trying to add together two BankAccount objects, which should result in a new object with the sum of the balances of the given accounts. Fix the code to make it work as expected and output the resulting account balance. I added adjusted the given code and this is the code that ive got but i really dont understand how its wrong, i tried following previous examples on the topic but got really confused: class BankAccount: def __init__(self, balance): self.balance = balance def __add__(self,other): return BankAccount (self.balance+ self.balance) a = BankAccount(1024) b = BankAccount(42) result = a + b print(result.balance) Hopefully u guys can help to explain better so i can understand this topic better as well