I’m having a devil of time coming to grips as to when and why the compiler throws out indentation errors. Take this simple code for example for section 18/18:
n = [[1, 2, 3], [4, 5, 6, 7, 8, 9]] # Add your function here def flatten(lst): result =  for i in lst: for j in i: result.append(i[j]) return result print flatten(n)
This codes gives me the error in the console:
File "python", line 8 result.append(i[j]) ^ IndentationError: unindent does not match any outer indentation level
I don’t see where the problem is. What’s wrong with my indents?