x = [1, 2, 3, 1, 3] s = [] for i in x: if x.count(i) > 1: s.append(i)
In PyDev it works .. result ist correct, but i cannot solve it in the code-editor ..
1
3
7