Initial beginning balance

account_balance
June 30, 2019
account balance
June 30, 2019

import sys

#Initial beginning balance

account_balance = float(500.25)

#defines balance

def account_balance():

 #print the beggining balance amount

  print(“Your current balance:n$%.2f”%account_balance)

#defines deposit

def deposit_amount():

#req user to input amt of depsit

 deposit_amount = float(input(“How much would you like to deposit?”))

   # calulated new bal with amt deposited

account_balance = account_balance + deposit_amount**** keeps erroring and i can’t figure out the issue?  account_balance = account_balance + deposit_amount

TypeError: unsupported operand type(s) for +: ‘function’ and ‘function’

Top Answer

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp