Python Programming
Create a Dictionary for a bank customer that contains: First Name, Last Name, Account Number, Savings amount and Checking amount. Minimum 3 customer. (each must be different)

Create a Dictionary for a Bank ATM that is made up of the customers from above.

When your program runs it should prompt the user for an account number (must be one in your dictionary).

The user can then select the following options. (stay in a loop until the user ends the session)

Review account information. (Print all the information for that account)

Deposit money to Savings or Checking. (Add amount to account)

Withdraw from Savings or Checking. (Subtract amount from the account. Can’t go below $0).

End session with ATM. (Print a farewell message)

Respuesta :

The python program that creates a Bankaccount class for a Bank ATM that is made up of the customers and has a deposit and withdrawal function is given below:

Python Code

# Python program to create Bankaccount class

# with both a deposit() and a withdraw() function

class Bank_Account:

def __init__(self):

 self.balance=0

 print("Hello!!! Welcome to the Deposit & Withdrawal Machine")

def deposit(self):

 amount=float(input("Enter amount to be Deposited: "))

 self.balance += amount

 print("\n Amount Deposited:",amount)

def withdraw(self):

 amount = float(input("Enter amount to be Withdrawn: "))

 if self.balance>=amount:

  self.balance-=amount

  print("\n You Withdrew:", amount)

 else:

  print("\n Insufficient balance ")

def display(self):

 print("\n Net Available Balance=",self.balance)

# Driver code

# creating an object of class

s = Bank_Account()

# Calling functions with that class object

deposit()

s.withdraw()

s.display()

Read more about python programming here:

https://brainly.com/question/26497128

#SPJ1