[Solved] python not understanding simple math question [closed]
What you shared is not valid python code. Here is an example of code that will accomplish what you are asking: # define function: def CalculateMortgage(p, i, n): # calculate numerator: numerator = p * (i *(1+i) ** n) # calculate denominator: denominator = ((1+i) ** n – 1) # calculate mortgage: mortgage = numerator/denominator … Read more