a = [1,2,3,4,2,72,34,63,13,1,3,1,1,1,1,4]
b = []
for i in a:
if a.count(i) > 1:
for j in range(a.count(i)-1):
a.remove(i)
b.append(i)
print(b)
Держи ~~
a = [1,2,3,4,2,72,34,63,13,1,3,1,1,1,1,4]
b = []
for i in a:
if a.count(i) > 1:
for j in range(a.count(i)-1):
a.remove(i)
b.append(i)
print(b)
Держи ~~