This Python Banking Program allows users to perform basic banking operations such as checking the balance, depositing money, and withdrawing money. It runs in a console environment, prompting the user for input and displaying the current balance.
Clone the repository:
git clone https://github.com/nomankarim8/python-banking-program.git
cd python-banking-program
Run the program:
python banking_program.py
Follow the on-screen instructions:
1
to display your current balance.2
to deposit money. Enter the amount when prompted.3
to withdraw money. Enter the amount when prompted.4
to exit the program.show_balance(balance)
: Displays the current balance.deposit()
: Prompts the user for a deposit amount and returns the amount if valid.withdraw(balance)
: Prompts the user for a withdrawal amount and returns the amount if valid.main()
: Main function that runs the banking program, handling user input and calling the appropriate functions.*********************
Banking Program
*********************
1.Show Balance
2.Deposit
3.Withdraw
4.Exit
*********************
Enter your choice (1-4): 2
*********************
Enter an amount to be deposited: 100
*********************
*********************
Your balance is $100.00
*********************
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to submit issues or pull requests if you have suggestions for improvements or new features.
```
You can customize the sections under “Author” and “Contributing” as needed. Make sure to replace placeholders like your-username
and your name
with your actual GitHub username and name.