[Tutor] index of a list of lists of strings
tpc at csua.berkeley.edu
tpc at csua.berkeley.edu
Wed May 12 14:19:09 EDT 2004
hi everybody, let's say I have a list called donorValuesList that stores
lists of strings, such that donorValuesList[0] would return ['NULL',
'NULL', 'James', 'NULL', 'Smith' ... etc] and donorValuesList[1] would
return ['NULL', 'Mr', 'William', 'NULL', 'Johnson' ... etc]. Could I
find the index of a specific list if I knew only a few of the strings and
their positions ? For example, I want to find the index in
donorValuesList of a list where 'John' is the third value, 'NULL' is the
fourth, and 'Brown' is the fifth, but I don't have enough information to
construct a complete list to pass to donorValuesList.index(). Is this
possible ?
More information about the Tutor
mailing list