![]() |
|
#2
|
|||
|
|||
|
The raw_input function returns a string object, which cannot be used as an index in a list. You will need to convert the string to an integer first:
Code:
index = int(y) print x[index] |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| export problem | bazelaisr | Vizard | 2 | 05-28-2008 11:19 AM |
| 5DT Data Glove 5 Ultra Problem | bjgold | Vizard | 1 | 08-08-2006 05:08 PM |
| problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 11:36 AM |
| sound problem | alaa | Vizard | 7 | 09-02-2005 02:13 PM |
| problem with input boxes | shai | Vizard | 6 | 08-15-2005 11:51 AM |