• Register
0 votes
155 views

Problem :

When I compile the Python code I get below error

IndentationError: unindent does not match any outer indentation level

6.9k points

Please log in or register to answer this question.

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

38.6k points
edited by

Related questions

0 votes
1 answer 1 view
1 view
Problem: Has anyone had this issue before : Unindent does not match any outer indentation level python error?
asked Jun 20 nila 117k points
0 votes
1 answer 9 views
9 views
Problem: What is wrong here : Unindent does not match any outer indentation level in python?
asked Jun 22 Priscilla Gurpreet 71k points
0 votes
1 answer 16 views
16 views
Problem: I'm trying to figure out a solution, need help >Unindent does not match any outer indentation level python.
asked May 9 Florina Gulnar 103k points
0 votes
1 answer 21 views
21 views
Problem: Please help me to solve it .. Indentationerror: unindent does not match any outer indentation level python
asked Apr 3 Ifra 43.4k points
0 votes
1 answer 69 views
69 views
Problem: When I compile the Python code below, I get IndentationError: unindent does not match any outer indentation level import sys def Factorial(n): # Return factorial result = 1 for i in range (1,n): result = result * i print "factorial is ",result return result Why?
asked Jan 6 Mashhoodch 13k points
0 votes
1 answer 206 views
206 views
Problem : When I try to compile my Python code below, I get below error “IndentationError: unindent does not match any outer indentation level” import sys def Factorial(n): # Return the factorial     myresult = 1     for j in range (1,n):         myresult = myresult * j     print "The factorial is: ",myresult     return myresult Why am I getting above error?
asked Jan 22, 2020 jwilliam 3.9k points
0 votes
1 answer 11 views
11 views
Problem: When I compile the Python code below, I get > Indentationerror unindent does not match any outer indentation level
asked May 3 ochena 23.3k points
0 votes
1 answer 9 views
9 views
Problem: When I compile the Python code below, I get IndentationError: unindent does not match any outer indentation level Thanks
asked Mar 16 ummesalma 29.1k points
0 votes
1 answer 10 views
10 views
Problem : Unindent does not match any outer indentation.
asked Jul 6 Isac Christiaan 102k points
0 votes
1 answer 63 views
63 views
Problem: I am new to python and I have implemented the list in python and trying to access the list index but it getting me an error that is intend error by for loop don’t know what I am doing wrong in this code. I come from the C background so ... File "main.py", line 46 break ^ IndentationError: unindent does not match any outer indentation level Need someone to help me waiting for help!!
asked Jun 29, 2020 Gavin 15.3k points