IndentationError

Terry Reedy tjreedy at udel.edu
Thu Dec 10 19:58:43 EST 2009


hong zhang wrote:
> List,
> 
> I got error says IndentationError in end of line.
> I could not figure out why. See following:
> 
> $ ./cont-mcs 
>   File "./cont-mcs", line 264
>     mcs1 = ht_val+cck_val+green_val+fat_val+sgi_val
>                                                   ^
> IndentationError: unindent does not match any outer indentation level

Look at previous lines. Make sure you only use tabs or only use spaces 
and not both. If you still need help, post all code back to last 
unindented line.





More information about the Python-list mailing list