+ 1
Why doesn't it work?
Please help https://code.sololearn.com/cMyqZonDtha4/?ref=app
2 Respostas
+ 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
+ 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