diff --git a/banking/bank.py b/banking/bank.py index aad97015f..e04c75b68 100644 --- a/banking/bank.py +++ b/banking/bank.py @@ -7,7 +7,7 @@ from banking.transactions import pay_bill, transfer -def create_account(account_type, account_number): + """ Creates a new bank account with the specified account type and account number. """ @@ -21,6 +21,7 @@ def create_account(account_type, account_number): return account + def get_account(account_number): """ Retrieves the bank account with the specified account number. @@ -47,6 +48,7 @@ def save_account(account): save_account_data(account.account_number, account.type, account.balance) + def process_transaction(transaction): """ Processes the specified transaction by transferring funds between bank accounts or paying a bill.