indices question

Christian Heimes lists at
Sat Sep 6 01:54:10 CEST 2008

Lanny wrote:
> Please don't tell me that "list indices must be integers" because I know 
> that, Why can't I put a varible thats an integer instead? 

raw_input() always returns a string. You have to convert the string into 
an integer using int().


More information about the Python-list mailing list