input = [1, 1, 3, 6, 4, 8, 8, 5, 6]
c = collections.Counter(input)
c
duplicates = [i for i in c if c[i] > 1]
duplicates
How to compare values within an array in Python - find out whether 2 values are the same