While and If messing up my program?

Lasse Vågsæther Karlsen lassevk at gmail.com
Wed Oct 5 09:17:08 CEST 2005


The specific error in your code, is that when cnto == len(ttllst), then
doing ttllst[cnto] will give you that error.

The list is indexed from 0 to len-1, which means that doing
list[len(list)] will give that error.




More information about the Python-list mailing list