List index question

mrmakent at cox.net mrmakent at cox.net
Wed Dec 7 16:05:11 EST 2005


What you mean to do is y.index('2'), rather than y.index['2'].  Call
the index method of the list, rather than try to use index as if it was
itself a list.




More information about the Python-list mailing list