+ 1

need help with python 3 code

please help me fix this code https://code.sololearn.com/ceL5I0KczPjn/?ref=app

14th Jul 2018, 12:38 AM
Jason Wade
Jason Wade - avatar
4 Answers
+ 8
I hope this is what you're looking for https://code.sololearn.com/cZKclaTRzqKL/?ref=app Don't forget to put a colon after every if statement. elif statements also require a test. you can't just do elif: Else should go to the very end, for when every other possibility has been tested When comparing integers, don't use quotes. I noticed you tried seeing if 4 + 6 is equal to "10". 10 isn't the same as "10" and that's why the first comparison resulted in false
14th Jul 2018, 12:48 AM
Koketso Dithipe
Koketso Dithipe - avatar
+ 2
You have two big problem. First,you should never lose a colon after a if statment. Second,you have said that elif=else if,so you must add a condition after the elif statment. These problem will also occur in python2.
14th Jul 2018, 12:49 AM
You
You - avatar
+ 2
thank you everyone!
14th Jul 2018, 12:58 AM
Jason Wade
Jason Wade - avatar