# BankAccount Class with Errors Correct the errors. Class bank_account: def __init__(acct_num, acct_type, name, email): self.acct_num = acct_num self.acct_type = acct_type self.name = name email = self.email self.balance = 0.0 def deposit(self, amount): if amount > 0.0 self.balance + = amount return true else: return False def withdraw(self, amount): if amount > self.balance: return False else if amount < 0.0: return False: else: self.balance += amount return True # Triple quotes (''') allow you to go # to a new line in the middle of a string. def _str_( ): return f'''Acct Num: {self.acct_num} Acct Type: {self.acct_type} Name: {self.name} Email: [self.email] Balance: {self.balance}''' # BankAccount Class with Errors # Correct the errors. class BankAccount: def __init__(self, acct_num, acct_type, name, email): self.acct_num = acct_num self.acct_type = acct_type self.name = name self.email = email self.balance = 0.0 def deposit(self, amount): if amount > 0.0: self.balance += amount return True else: return False def withdraw(self, amount): if amount > self.balance: return False elif amount < 0.0: return False else: self.balance -= amount return True # We know about ' and " "don\'t" # Triple quotes (''' or """) allow you to go # to a new line in the middle of a string. def __str__(self): return f'''Acct Num: {self.acct_num} Acct Type: {self.acct_type} Name: {self.name} Email: {self.email} Balance: {self.balance}''' # Corrected module bankaccount.py class BankAccount: def __init__(self, acct_num, acct_type, name, email): self.acct_num = acct_num self.acct_type = acct_type self.name = name self.email = email self.balance = 0.0 def deposit(self, amount): if amount > 0.0: self.balance += amount return True else: return False def withdraw(self, amount): if amount > self.balance: return False elif amount < 0.0: return False else: self.balance -= amount return True # We know about ' and " "don\'t" # Triple quotes (''' or """) allow you to go # to a new line in the middle of a string. def __str__(self): return f'''Acct Num: {self.acct_num} Acct Type: {self.acct_type} Name: {self.name} Email: {self.email} Balance: {self.balance}'''