Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def removeduplicates(list_input):
- deduplicated = []
- for i in list_input:
- if i not in deduplicated:
- deduplicated.append(i)
- return(deduplicated)
- x = input("Please enter the list values separated by space: ")
- list_x = x.split()
- removeduplicates(list_x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement