Dapo Ladimeji wrote: > "calculate compound interest > """" > i= interest_rate / periods > n= periods * years > return ((1+i)**n) * principal" Try the following instead: """ calculate compound interest """ i = interest_rate / periods n = periods * years return ((1+i)**n) * principal cheers, Chris