I’m still stuck with this Scope exercise. Why is there an unexpected indent error in def calculate interest on savings?
I defined savings above on the exact line as “def calculate interest on savings”.
Besides this problem, any resources to work on scoping issues with regards to nested functions?
def print_balance(): balance = 1000 print("Your balance is " + str(balance)) def deduct(amount): print("Your new balance is " + str(balance - amount)) savings = balance-amount deduct(500) def calculte_interest_on_savings(savings): print("You will gain interest on: " + str (savings)) calculte_interest_on_savings(savings)