Indentation Error Example:ΒΆ

A simple code error:

In [1]: for x in range(5):
   ...:     print('x = ', x)
   ...:    print('x**2 = ', x**2)   # the indentation is off

and the result it:

-----------------------------------------------------------
IndentationError: un-indent does not match any outer indentation level (<ipython console>, line 3)

While with the correct indentation you get:

In [1]: for x in range(5):
   ...:     print( 'x = ', x )
   ...:     print( 'x**2 = ', x**2 )   # the indentation is off
x =  0
x**2 =  0
x =  1
x**2 =  1
x =  2
x**2 =  4
x =  3
x**2 =  9
x =  4
x**2 =  16