A couple of quick questions

Nathan Clegg nathan at islanddata.com
Mon May 24 18:08:43 EDT 1999


How about:

new_list = map(lambda x: list[x], indexes)


On 24-May-99 cbarker at jps.net wrote:
> list = [1,2,3,4,5,6,7,8,9,10,11]
> indexes = [3,5,9]
> new_list = []
> for i in indexes:
>         new_list.append(list[i])
> 



----------------------------------
Nathan Clegg
 nathan at islanddata.com






More information about the Python-list mailing list