+ 5

Pls help me found the problem with this code

Am always problems when coding with python because of numereous errors. But its becoming alarming. Why do the "else:" in thi code is an invalid syntax. THANKS. https://code.sololearn.com/cCq9yb05jGf4/?ref=app

29th Jun 2018, 10:07 AM
Harry
Harry - avatar
5 ответов
+ 5
your else is not being seen as an "else" to the if due to bad indentation
29th Jun 2018, 10:13 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 3
Thanks you all for the informations. Seems like this matter of identation will handle me for a very long moment. Again THANKS
29th Jun 2018, 10:22 AM
Harry
Harry - avatar
+ 1
full of indentation(space) error https://code.sololearn.com/c78UC99Ok95h/?ref=app
29th Jun 2018, 10:13 AM
‎ ‏‏‎Anonymous Guy
+ 1
Also besides the syntax error, the output is not that perfect, it prints many lines in case it's a big number. You can try this : https://code.sololearn.com/cVgIc8pW4jUu/?ref=app
3rd Jul 2018, 2:00 AM
Mohamed IHeb Ferjani
Mohamed IHeb Ferjani - avatar