When I compile the Python code below, I get
IndentationError: unindent does not match any outer indentation level
The line: result = result * i should be indented (it is the body of the for-loop).
result = result * i
Or - you have mixed space and tab characters