Объяснение:
from random import randint
arr=[randint(-10,10) for i in range( randint(1,10))]
for i in set(arr):
if arr.count(i)>1:
print(i,end=' ')
Объяснение:
from random import randint
arr=[randint(-10,10) for i in range( randint(1,10))]
for i in set(arr):
if arr.count(i)>1:
print(i,end=' ')