list 28set 28 29 29 python remove order

Solutions on MaxInterview for list 28set 28 29 29 python remove order by the best coders in the world

showing results for - "list 28set 28 29 29 python remove order"
Matteo
07 Jun 2020
1>>> x = [1, 2, 20, 6, 210]
2>>> sorted(set(x), key=x.index)
3[1, 2, 20, 6, 210]
4