Ask coding questions

← Back to all posts
inconsistant use of tabs and spaces
theopythontest (0)

i dont know how to fix this. its been annoying me for almost a week

Answered by robowolf (550) [earned 5 cycles]
View Answer
Comments
hotnewtop
robowolf (550)

For anything under a function do [TAB] instead of [SPACE]. And remember don't mix the two. If nothing works, make a new repl and try copy pasting with correct formatting

Bookie0 (6189)

Select everything with cmd-a/ctrl-a, then press , and then shift-tab.
That will indent everything, and un-indent it, which will also make everything with the same types of indentation.

Good luck! :D