Analyse financial data with python path: Bank Teller

Hi everyone! Attached is my code for the bank teller project.

  1. Initializing savings and checking account values.
checking_balance = 0 savings_balance = 0
  1. Create a function to check the Balance
def check_balance(account_type, checking_balance, savings_balance) : if account_type== "savings": balance= savings_balance elif account_type== "checking": balance= checking_balance else: return error balance_statement= "Your "+ account_type + " balance is "+ str(balance) return balance_statement
  1. Calling and Printing the check_balance() function for Checking Account
print(check_balance("checking", checking_balance, savings_balance))
  1. Create a function to make a deposit
def make_deposit(account_type, amount, checking_balance, savings_balance): deposit_status= "" if amount> 0: if account_type== "savings": savings_balance+= amount deposit_status= "successful" elif account_type== "checking": checking_balance+=amount deposit_status= "successful" else: deposit_status= "Unsuccessful, please enter \"checking\" or \"savings\"" else: deposit_status= "unsuccessful, please enter an amount greater than 0" deposit_statement= "Deposit of "+ str(amount)+ " to your "+ account_type+ " account was "+ deposit_status print(deposit_statement) return savings_balance, checking_balance
  1. Create a function to make a withdrawal
def make_withdrawl(account_type, amount, checking_balance, savings_balance): withdrawl_status= "" fail= "unsuccessful, please enter amount less than balance" if account_type== "savings": if amount<= savings_balance: savings_balance-= amount withdrawl_status= "successful" else: withdrawl_status= fail elif account_type== "checking": if amount<= checking_balance: checking_balance-= amount withdrawl_status= "successful" else: withdrawl_status= "unsuccessful, please enter \"checking\" or \"savings\"" else: error withdrawl_statement= "Withdrawl of " + str(amount)+ " from your "+ account_type+ " account was "+ withdrawl_status print(withdrawl_statement) return savings_balance, checking_balance
  1. Create a function to make a transfer between accounts
def acc_transfer(acc_from, acc_to, amount, checking_balance, savings_balance): transaction_status= "" trans_error= "unsuccessful, please enter amount less than " if acc_from== "savings" and acc_to== "checking": if amount<= savings_balance: savings_balance-= amount checking_balance+= amount transaction_status= "successful" else: transaction_status= trans_error+ str(savings_balance) elif acc_from== "checking" and acc_to== "savings": if amount<= checking_balance: checking_balance-= amount savings_balance+= amount transaction_status= "successful" else: transaction_status= trans_error+ str(checking_balance) else: transaction_status= "unsuccessful, please enter \"checking\" or \"savings\"" transaction_statement= "Transfer of "+ str(amount)+ " from your "+ acc_from+ " to your "+ acc_to+ " account was "+ transaction_status print(transaction_statement) return savings_balance, checking_balance

Let me know if there’s any feedback! Thank you!