- 1
Can someone help me with my program? It displays an error in line 18
I am making a quadratic equation solver but the code doesnt work (i use python). Please help me. Thanks https://code.sololearn.com/cl44guJJafgN/?ref=app
5 odpowiedzi
0
GP_Chrisdest you're welcome. Have a good day 🙂
+ 1
GP_Chrisdest don't you know how python syntax works?
Python's syntax are different from other programming languages.
if condition:
---------------
----------------
elif condition:
-----------------
-----------------
+ 1
GP_Chrisdest Again, its not 'else if' it's 'elif' in python also on line 26 & 28 use == for compare
0
zexu knub yeah i forgot about that. I just changed it but the else if displays an error
https://code.sololearn.com/cl44guJJafgN/?ref=app
0
zexu knub thank you very much. I fixed it and it works perfectly. Thanks for your time :)