Create a Python program to add accounts in a bank and get the information of all accounts in the bank.
Here, we will write a Python program that will take input from the user about details of the new account in the bank. And then print the information of each account and the total amount in the bank.
Steps to create the bank management system:
- Step 1: Create a class named Bank that will store all the information and have methods to get and display account and balance details.
- Step 2: Method: OpenAccount() takes account information form the user and feeds it to the object.
- Step 3: Method: ShowAccount(), prints the account information.
- Step 4: we will create objects of this class and get information. For multiple objects, we will store them into a data structure for reference.
Python Program to add accounts in a bank
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer