Programmers learn & share
0 votes
77 views

Problem :

When I compile the Python code I get below error

IndentationError: unindent does not match any outer indentation level

by (6.9k points)   | 77 views

1 Answer

0 votes

Solution 

For Sublime Text users:

Set Sublime Text to use tabs for indentation: 

View --> Indentation --> Convert Indentation to Tabs

Uncheck the Indent Using Spaces option as well in the same sub-menu above. 

This will immediately resolve this issue.

Further Readings:

https://github.com/funkandwagnalls/pythonpentest/issues/1

by (36.1k points)  
edited by
2,218 questions
2,683 answers
59 comments
241 users