- 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

12th Oct 2021, 12:21 PM
GP_Chrisdest
GP_Chrisdest - avatar
5 Antworten
0
GP_Chrisdest you're welcome. Have a good day 🙂
12th Oct 2021, 12:56 PM
zexu knub
zexu knub - avatar
+ 1
GP_Chrisdest don't you know how python syntax works? Python's syntax are different from other programming languages. if condition: --------------- ---------------- elif condition: ----------------- -----------------
12th Oct 2021, 12:31 PM
zexu knub
zexu knub - avatar
+ 1
GP_Chrisdest Again, its not 'else if' it's 'elif' in python also on line 26 & 28 use == for compare
12th Oct 2021, 12:40 PM
zexu knub
zexu knub - avatar
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
12th Oct 2021, 12:34 PM
GP_Chrisdest
GP_Chrisdest - avatar
0
zexu knub thank you very much. I fixed it and it works perfectly. Thanks for your time :)
12th Oct 2021, 12:42 PM
GP_Chrisdest
GP_Chrisdest - avatar