[Tutor] IndentationError:
Andre Engels
andreengels at gmail.com
Wed Nov 16 09:31:26 CET 2011
On Wed, Nov 16, 2011 at 9:21 AM, lina <lina.lastname at gmail.com> wrote:
> it still complaining. I set the gedit, use space not tab,
> Now I even typed space by space, avoid using tab, it still has the same
> problem.
>
> How can I fixed it?
>
The line
if list1[i][j] != list1[i][j+1]:
still contains a tab, thus it is now indented negative 3 spaces plus a tab
plus 3 spaces compared to the encompassing loop, which is problematic both
because there is a negative number in there and because it differs from the
rest of the lines in the same loop (6 spaces)
--
André Engels, andreengels at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111116/5b045409/attachment.html>
More information about the Tutor
mailing list