I am trying to get LOT of IndentationErrors when writing Python code. Sometimes the error is deleted when I delete and rewrite the string. Can someone provide an explanation of the indentationErrors level in python for noob?
Here is an example of a recent indentationError that I received while playing CheckIO that won't go away:
def checkpass(data): """Checks password for >=10 char + 1 number + 1 LC letter + 1 UC letter""" passlist = [] uclist = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] lclist = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] blah blah.. more code
Here is the error I get when I call python script:
$ python passcheck.py File "passcheck.py", line 5 uclist = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', ^ IndentationError: unindent does not match any outer indentation level