x=float(input()) def f(x): y=x**2+2*x-9 y =round(y,3) return y result = f(x) print(result)
我瞅着你的也没有错,是不是这个作业要求函数返回