I have the following Python list (can also be a tuple):
myList = [\'foo\', \'bar\', \'baz\', \'quux\']
I can say
>>&g
What about this:
from operator import itemgetter itemgetter(0,2,3)(myList) ('foo', 'baz', 'quux')