def F(x): y=2*x**3+7*x**2-33*x-18 return y x=-5 while x<=5: if F(x)==0: print(x) x=x+0.5