python executes the first "for" and its condititions then the next "for". What i'm saying is that you should first deal with one as nested block codes _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor