Question: 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 =

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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
