Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def find_duplicate(my_input):
- my_input = sorted(my_input)
- mylist = []
- for i in range(len(my_input) - 1):
- if my_input[i] == my_input[i + 1]:
- mylist.append(my_input[i])
- return mylist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement