thelist = [2, 11, 8, 9, 4, 1, 3] items = [2, 4, 5] elements = [e for i, e in enumerate(thelist) if i in items] print(elements)