no dont give up! it was 1 am since my last post!
In a new script paste this code.
If you ran that code you would get:
In a new script paste this code.
def newbalances(initialbalance, productname, advertisingcost): wholesaleprice = 9 newbalance = initialbalance - advertisingcost - productname * wholesaleprice return newbalance #calling the function newbalances #need input arguments (initialbalance, productname, advertisingcost) #and a variable to store it todayBalance=newbalances(1000, 10, 100) print(todayBalance)
If you ran that code you would get:
Output:810
When my code doesn't work I don't know why **think** and when my code works I don't know why **think**