Can someone please help solve this python coding question?

Coronacosmo
Can someone please help solve this python coding question?
Can someone please help solve this python coding question?

I tried the first two inputs and they worked. Then I tried to make x = -1 and the output was -3.0 when it’s supposed to be -9.0. I’m stuck please help.

Updates
1 y
Sorry the picture was blurry so I will type out what I put in the console:

x = -1
x = float (x)
y = 3*x**2 - 2*x**2 + 3*x - 1

Can someone please help solve this python coding question?
1 Opinion