Thread
:
String within a string problem?
View Single Post
#
2
08-29-2008, 01:35 PM
farshizzo
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
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]
farshizzo
View Public Profile
Find all posts by farshizzo