17th Dec 2019, 3:16 PM
Videomaker yt
Videomaker yt - avatar
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
17th Dec 2019, 3:24 PM
Jax
Jax - avatar
+ 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 🙂
17th Dec 2019, 3:32 PM
Elen V
Elen V - avatar