list subscripting (nested lists)

les ander les_ander at yahoo.com
Sat Mar 30 23:16:21 EST 2002


Hi,
is it possible to have nested lists indexing in python?
i.e. index=[3,1,1] and List1=['a','b','c','d']
then List1[ index ] should print out ['d','b','b']

I think this would be a cool feature to add if not already present.
thanks
les



More information about the Python-list mailing list