Ask coding questions

← Back to all posts
Unindent error
YuvaneshAnand (0)

I have no idea what is causing this error but when I try to run it, it fails. I tried running it in sublime and it worked. Thanks for your time!

Commentshotnewtop
skull_is_dull (40)

on everywhere else you use tabs but on lines 351 to 362 you use spaces to indent.
replace the spaces with tabs and it should work

roylatgnail (835)

Heres your error
All the code below line 350 is indented using tabs. Your code after line 350 is in spaces. Either convert all tabs to spaces, or all spaces you used to indent to tabs

YuvaneshAnand (0)

I just tried making those lines tabbed and it still doesn't work
@TaylorLiang

roylatgnail (835)

@YuvaneshAnand Those lines are still not tabs. Try setting your indentation type tabs

YuvaneshAnand (0)

@TaylorLiang I just deleted all the indents and replaced it with tabs but it still doesnt work

roylatgnail (835)

@YuvaneshAnand No you did not. Replace lines 351 to 366 with tabs for indentation

YuvaneshAnand (0)

@TaylorLiang Could you give me an example cause I just deleted those lines and retyped them with tab spacing