In this tutorial, we will introduce you how to fix IndentationError: unindent does not match any outer indentation level in python script.
Why does this error occur?
Because both of white spaces and tab are used for indent in python script.
How to fix this error?
We can open notepad++ and click View->Show Symbol->Show White Space and TAB.
Then you will see:
Then, we can replace all TAB indent with white spaces.
Finally, we will see this error is fixed.