def not_unique(data):
data1 = []
for d in data:
if data.count(d) != 1:
data1.append(d)
return data1
lst = [1,1,2,3,5,6,6,7,8,8]
print(not_unique(lst))
ZGVmIG5vdF91bmlxdWUoZGF0YSk6CiAgICBkYXRhMSA9IFtdCiAgICBmb3IgZCBpbiBkYXRhOgogICAgICAgIGlmIGRhdGEuY291bnQoZCkgIT0gMToKICAgICAgICAgICAgZGF0YTEuYXBwZW5kKGQpCiAgICByZXR1cm4gZGF0YTEKICAgIApsc3QgPSBbMSwxLDIsMyw1LDYsNiw3LDgsOF0KCnByaW50KG5vdF91bmlxdWUobHN0KSk=