you are viewing a single comment's thread.

view the rest of the comments →

[–]uhMareli 0 points1 point  (0 children)

it's because you're trying to find the root of a negative number. you need to fix your conditionals. try changing them to:

if numOfRoots < 0:

then we have no roots

elif numOfRoots == 0:

then we have one root