IndentationError

Lie Ryan lie.1296 at gmail.com
Thu Dec 10 20:57:15 EST 2009


On 12/10/2009 6:32 AM, 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 the surrounding code. Indentation Errors often lies on the 
previous few lines. Possibly caused by unmatching parentheses.




More information about the Python-list mailing list