fairly new to programming and trying to learn Python at the moment. I have this code and I don\'t understand why I don\'t get a return value :(
balance = 3200 an
First you should add return ba to function f to make f return someting:
return ba
f
def f(x): m = 0 ba = balance while m < 12: ba = (ba - x)*monthlyInterestRate m += 1 retrun ba
Then, add bisection() at the last of your script file to call it:
bisection()