#declare global variables here #helper functions def set_account_details(): account_holder = input("Enter account holder's name: ") # Get account holder's name account_number = input("Enter account number: ") # Get account number # Function to deposit money def deposit(): amount = float(input("Enter amount to deposit: ")) balance = balance + amount # add amount from the account balance # Function to withdraw money def withdraw(): amount = float(input("Enter amount to withdraw: ")) if amount > account_balance: # Check if there are sufficient funds print("Insufficient funds!") else: balance = balance - amount # deduct amount from the account balance # Function to display account information def display_account_info(): print(f"Account Holder: {account_holder}") print(f"Account Number: {account_number}") print(f"Current Balance: ${balance:.2f}") # Main program def main(): set_account_details() # Set initial account details display_account_info() # Display the account information deposit() # Deposit some money display_account_info() # Display the account information withdraw() # Withdraw some money display_account_info() # Display the account information #call main main()