I\'m trying to create an application in Python 3.2 and I use tabs all the time for indentation, but even the editor changes some of them into spaces and then print out \"inc
Sometimes, tab
does mess up while indenting. One way is to obviously use the tab
and backspace
to correctly indent the code.
Another way is to use space
4 times (depending on how much you want to indent).
A weird way that worked for me when nothing else worked, whichever line I getting the error, I backspaced
that line to the previous line and then pressed enter
. It automatically indented the line to correct position and I was not getting any error after that.
Hopefully, this should help.