Can someone explain what went wrong with my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone explain what went wrong with my code?

https://code.sololearn.com/csZq3V6e8saB/?ref=app

9th Nov 2020, 12:22 PM
Stan Lipman
Stan Lipman - avatar
2 Answers
+ 4
You have to indent every time you use a loop or decision statement since Python is very sensitive about indenting. https://www.sololearn.com/learn/Python/2277/ https://code.sololearn.com/cJ4zkN7kBMWb/?ref=app
9th Nov 2020, 12:29 PM
Simba
Simba - avatar
0
I think the indentation is kinda messed up. I would fix it for you, but it won't allow running the program. "Seems like your program requires input" that's what it said every time I press run. This may help. https://stackoverflow.com/questions/492387/indentationerror-unindent-does-not-match-any-outer-indentation-level
9th Nov 2020, 12:33 PM
Ca Sandra
Ca Sandra - avatar