Skip to main content

Program To Remove Duplicate From List

· One min read
Kaustubh Kulkarni
file.py
# Write a program to remove duplicate from list
list1=[5,1,2,3,4,5,6,7,8,1,2,3,0,9,8,6,4,3]
print(list(dict.fromkeys(list1)))
file.py
Output:
[5, 1, 2, 3, 4, 6, 7, 8, 0, 9]