How to extract elements from a list using indices in Python? [duplicate] August 26, 2023 by Tarik Perhaps use this: [a[i] for i in (1,2,5)] # [11, 12, 15]