On May 9, 11:04 am, dmitrey <[EMAIL PROTECTED]> wrote: > list1 = ['elem0', 'elem1', 'elem2', 'elem3', 'elem4', 'elem5'] > and > list2 = [0, 2, 4] # integer elements > > howto (I mean most simple recipe, of course) form list3 that contains > elements from list1 with indexes from list2, i.e.
list3 = [list1[i] for i in list2] -- Paul Hankin -- http://mail.python.org/mailman/listinfo/python-list