0
Why does this not work
2 Risposte
+ 3
Your code has 2 major issues.
1) you need to convert your input to a number (int) in order to compare it to other numbers.
2) You need a semicolon and a new line after if/elif/else statements.
Here is your fixed code:
https://code.sololearn.com/cbtmzcA4U7j6/?ref=app
+ 3
The lesson that explains if/else:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2278/
And your code with some changes:
https://code.sololearn.com/cDv2H3p0dlIa/?ref=app
Hope this helps 🙂