Question: modify code below class BankAccount (): interest_rate = 0.3 def __init__(self, name, number, balance): self.name = name self.num = number self.bal = balance def withdraw(self,
modify code below

class BankAccount (): interest_rate = 0.3
def __init__(self, name, number, balance): self.name = name self.num = number self.bal = balance
def withdraw(self, amount): self.bal = self.bal - amount
def deposit(self, amount): self.bal = self.bal + amount
def add_interest(self): self.bal += self.bal * self.interest_rate
Modify accounts.py to: 1. Put a comment after the instance and class variables to indicate what they are: a. i.e # class variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
