Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def removeduplicates(list_input):
  2.  
  3. deduplicated = []
  4. for i in list_input:
  5. if i not in deduplicated:
  6. deduplicated.append(i)
  7. return(deduplicated)
  8.  
  9. x = input("Please enter the list values separated by space: ")
  10. list_x = x.split()
  11. removeduplicates(list_x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement