Indentation errors... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Indentation errors...

I get that every time in code play ground! Whilw using 4 spaces, tab... doesn't matter. What could I do?

19th Jul 2016, 4:07 PM
Laura
Laura - avatar
5 Answers
+ 2
I think benneth is right. its easy to make syntax or format errors (think simple typo or accidentally hitting delete once) and those errors give give error codes near the offending line or typo. and indentation errors... sounds like its near the end of a line though I have never seen one. instead of reindenting everything, carefully look over the code before and after the line given in the error code. at WORST carefully look over EVERYTHING. And if your code is small enough, then yes, just post it here.
21st Jul 2016, 5:04 AM
TylerFrost
TylerFrost - avatar
+ 1
If you are getting indentation error despite 4 spaces or tab, then I guess there is an error in the overall syntax. Perhaps you could post the syntax here to get help.
19th Jul 2016, 5:51 PM
Benneth Yankey
Benneth Yankey - avatar
0
I guess I should just stick to coding on my computer.
19th Jul 2016, 7:40 PM
Laura
Laura - avatar
- 1
Well, I see why you'd think that, but I really only got an error message from indentitation.
19th Jul 2016, 7:39 PM
Laura
Laura - avatar
- 1
I'd go unindent everything and re-indent it, just to make sure you've got no errors
19th Jul 2016, 8:11 PM
Meghan Waring
Meghan Waring - avatar