This is a simple console-based banking system implemented in Python. It provides a set of functionalities for managing bank accounts, performing transactions, and accessing account information. The system supports the following features:
- Deposit funds
- Withdraw funds
- Transfer funds to another account
- View account information
- Generate account statements
- View balance history
- Update personal information
- Password protection
- Error handling for invalid operations
To run the banking system, make sure you have Python installed on your machine. Clone this repository and navigate to the project directory.
git clone https://github.com/CharlieCidral/python_bank.git
cd python_bank
Run the Python script to start the console-based banking system.
python bank.py
The system will present a menu with different options. Select the desired operation by entering the corresponding letter. Follow the prompts and provide the required information to perform transactions, view account details, or update personal information.
The banking system utilizes a user_accounts data structure to store account information. The structure is defined as follows:
user_accounts = {
"user1": {
"senha": "password1",
"saldo": 1000.0,
"extrato": "",
"historico_saldo": [],
"nome": "João da Silva",
"numero_conta": "123456789",
"contato": "[email protected]",
"type": "admin" # Type of account
},
"user2": {
"senha": "password2",
"saldo": 500.0,
"extrato": "",
"historico_saldo": [],
"nome": "Maria Oliveira",
"numero_conta": "987654321",
"contato": "[email protected]",
"type": "regular" # Type of account
},
# Add more user accounts as needed
}
Feel free to modify the user accounts data structure to add or update account information.
Contributions are welcome! If you find any issues or have suggestions for improvements, please create a pull request or submit an issue.
This project is licensed under the MIT License.