[Solved] Python copy to new list and exclude items


b = [item for x in a for item in x if x.index(item) in [0,3]]

let a be your main list. this returns item in position 0,3. moreover you can add any other index to that list if you want.

solved Python copy to new list and exclude items