Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def non(a):
- c = []
- for x in a:
- if a.count(x) > 1:
- c.append(x)
- return c
- non([1,2,3,1,3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement