【Python】配列から重複している要素を削除する

t = [1, 2, 3, 4, 5]
re = [2, 4]

[t.remove(r) for r in re if r in t]
print(t) # [1, 3, 5]
目次