Python에서 List 내에 존재하는 중복을 제거하는 방법은 크게 2가지
array = [1, 2, 3]
result = list(set(array))
dict.fromkeys() 사용array = [1, 2, 3]
result = list(dict.fromkeys(array))
array = [1, 2, 3]
result = []
for i in array:
if i not in result:
result.append(i)