1
import math
# Program intro
def main():
# float print functions for n, A, r
n = float(input('How much time in years do you need to pay back the loan?'))
A = float(input("What is the amount of money you would like to borrow in whole dollars $?"))
r = float(input("What is your desired interest rate in a whole number?"
P = (r + A)/(n * A)
为什么是P =(R + A)/(N * A)一个语法错误:无效的语法为什么这是Python中无效的语法错误?
你错过闭幕前一行的括号。 – mgilson