Список, чтобы установить, сохранить заказ Python
# For Python 3.7+
items = [1, 2, 0, 1, 3, 2]
list(dict.fromkeys(items))
>>> [1, 2, 0, 3]
Important Ibex
# For Python 3.7+
items = [1, 2, 0, 1, 3, 2]
list(dict.fromkeys(items))
>>> [1, 2, 0, 3]