+ 1
Can anyone help me?!!
I am new to coding and i am having trouble with making my first individual project. So the problem is that the elif delta==0 statement is not working as it should.can anyone tell me where is the problem please and thanks in advance. https://code.sololearn.com/c5UDiTJugmli/?ref=app Btw merry Christmas to all of you.ā¤ļøš
6 Answers
+ 7
yaaay
+ 6
https://docs.python.org/2/tutorial/floatingpoint.html
The problem is about checking for equality when it comes to floating point variables. Check this out and see if it helps:
http://floating-point-gui.de/errors/comparison/
+ 3
Put some comments in the code, so it will be easier to understand and try to tell us your problem more detailed.
+ 3
Then remove it ĀÆ\_(ć)_/ĀÆ
+ 1
https://code.sololearn.com/c5UDiTJugmli/?ref=app this is with more details
+ 1
The thing is if i remove the second elif statement everything goes right