+ 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.ā¤ļøšŸŽ„

24th Dec 2017, 10:52 AM
Joseph
Joseph - avatar
6 Answers
+ 7
yaaay
5th Feb 2018, 1:43 AM
Azize Ez-hraoui
Azize Ez-hraoui - avatar
+ 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/
24th Dec 2017, 11:07 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Put some comments in the code, so it will be easier to understand and try to tell us your problem more detailed.
24th Dec 2017, 11:04 AM
Tim Thuma
Tim Thuma - avatar
+ 3
Then remove it ĀÆ\_(惄)_/ĀÆ
24th Dec 2017, 11:23 AM
Tim Thuma
Tim Thuma - avatar
24th Dec 2017, 11:16 AM
Joseph
Joseph - avatar
+ 1
The thing is if i remove the second elif statement everything goes right
24th Dec 2017, 11:17 AM
Joseph
Joseph - avatar