Advertisement
ABED160105

pypy

Jun 16th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def find_duplicate(my_input):
  2.     my_input = sorted(my_input)
  3.     mylist = []
  4.     for i in range(len(my_input) - 1):
  5.         if my_input[i] == my_input[i + 1]:
  6.             mylist.append(my_input[i])
  7.  
  8.     return mylist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement