15th Jun 2019, 10:58 AM
Namir
Namir - avatar
2 ответов
+ 3
hi Namir, it doesn’t work because you are not using python syntax. I would recommend you to make the python course. Here is the code as it could be: https://code.sololearn.com/c6NK5eBh23wG/?ref=app
15th Jun 2019, 11:10 AM
Lothar
Lothar - avatar
+ 2
It's because Python isn't like other languages. You can't just use indentation wherever you want to, and you don't use {}, instead you use :, and indentation. Also, you can't compare strings to integers with the > operator, so the input should be turned into an integer (with the int() function) Also you closed the tags before you ran the print, so it would hava caused an error in other languages too https://code.sololearn.com/cbq860C1OUuT/?ref=app
15th Jun 2019, 11:03 AM
Airree
Airree - avatar