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...
You have mixed indentation formatting (spaces and tabs) On Notepad++ Change Tab Settings to 4 spaces Go to Settings -> Preferences -> Tab Settings -> Replace by spaces Fix the current file mixed indentations Select everything CTRL + A Click TAB once, to add an indentation everywhere Run SHIFT + TAB to remove the extra indentation, it will replace all TAB characters to 4 spaces.
Python: "Indentation Error: unindent does not match any outer indentation level" [duplicate] Asked 16 years, 1 month ago Modified 2 years, 10 months ago Viewed 213k times
IndentationError: unexpected indent IndentationError: expected an indented block TabError: inconsistent use of tabs and spaces in indentation IndentationError: unindent does not match any outer indentation level What do these errors mean? What am I doing wrong? How can I fix my code?
Python IndentationError: unindent does not match any outer indentation level [duplicate] Asked 8 years, 3 months ago Modified 2 years ago Viewed 33k times
IndentationError: unindent does not match any outer indentation level Обычно редакторы кода (стандартный Notepad к ним не относится) при создании отступов с помощью TAB и SHIFT + TAB сами «понимают», сколько пробелов перед строкой ...
I have an idea of the problem: the unindent doesn't match any outer indentation level. Indentation matters in Python, so you have to fix it. Check how many spaces you're using per level, check if you have tabs anywhere, and so on.
File "program.py", line 14 print "Usuario y Password correcto es:" ^ IndentationError: unindent does not match any outer indentation level Ya busque en Internet y no pude encontrar una respuesta.
error- IndentationError: unindent does not match any outer indentation level [duplicate] Asked 5 years, 6 months ago Modified 5 years, 6 months ago Viewed 2k times