1. Implement a class namedBankAccount. Every bank account has a starting balance of $0.00.The class should implement methods to accept deposits and makewithdrawals, but an exception should be raised if a withdrawal isattempted for more money than is currently in the account.
__init__(self) Sets the balance to 0.
deposit(self, amount) Deposits money. Raises an exception if amountis less than zero.
widthdraw(self) Withdraws money. Raises an exception if the accountis overdrawn
balance(self) Returns the amount of money in the account.
(Python)
Answer
class BankAccount: def __init__(self):
OR
OR