test_2 = [1,2,3,4]
my_paper = [3,1,2 ]
test2 = [int(item) for item in test_2]
for i in test_2:
for j in my_paper:
if i == j:
test2.remove(i)
my_paper.remove(j)
print (test2)
print (my_paper)
[4]
[]
test_2 = [1,2,3,4]
my_paper = [3,1,2 ]
test2 = [int(item) for item in test_2]
for i in test2:
for j in my_paper:
if i == j:
test2.remove(i)
my_paper.remove(j)
print (test2)
print (my_paper)
[2, 4]
[2]