The BankAccount program is a simple command-line application that simulates a basic bank account system. It allows users to create bank accounts with 5-digit account numbers, deposit and withdraw funds, and check their account balance.
To run the BankAccount program, you need to have Python 3 installed on your system. If you don't have Python installed, you can download it from the official website: Python Downloads
-
Open a terminal or command prompt in the folder containing
bankbalance.py. -
Run the program by typing the following command in the terminal: python bankbalance.py
-
The program will prompt you to enter your 5-digit account number to access your bank account. Enter a valid numeric account number between 00001 and 99999.
-
Once authenticated, you can select from the following options:
- Enter
1to Deposit funds into your account. - Enter
2to Withdraw funds from your account. - Enter
3to Check your account balance. - Enter
4to Exit the bank account program.
- Follow the on-screen instructions to perform the desired actions.
- You can create a bank account with a 5-digit account number starting from 00001.
- The program ensures that the account number entered is numeric and within the specified range.
- The program handles invalid inputs and prompts the user to enter valid input where necessary.