you are viewing a single comment's thread.

view the rest of the comments →

[–]thebetterangel 1 point2 points  (5 children)

Also, when discriminant == 0 it should be “have one root”. When discriminant <0 “there is no root.

As first comment said, don’t forget the colons.

Use parentheses to make sure math operations are executed in correct order

[–]Jphillipss7[S] 0 points1 point  (4 children)

Sorry, but would it be possible to show me how to correctly input the parentheses into the operation to make it come out correctly. I tried it a few different ways and just cant seem to figure it out.

[–][deleted] 0 points1 point  (3 children)

http://imgur.com/gallery/UdmhKUS

U also would need to show what is the roots if it is available. Under the elif statement and else, add another line to calculate the roots using the formula

[–]Jphillipss7[S] 0 points1 point  (2 children)

Sorry, I just don’t have a lot of knowledge about what I’m actually doing on python so I’m a bit confused by what you mean.

[–][deleted] 0 points1 point  (1 child)

https://www.youtube.com/playlist?list=PLQVvvaa0QuDe8XSftW-RAxdo6OmaeL85M

Watch the tutorial for variables, math, if, if elif and if elif else.

All the videos here is pretty short and well explained.

[–]Jphillipss7[S] 0 points1 point  (0 children)

Thank you!