You are viewing a single comment's thread. Return to all comments →
n=int(input()) a=set(map(int, input().split())) m=int(input()) b=set(map(int, input().split())) difference_set = a-b
print(len(difference_set))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .difference() Operation
You are viewing a single comment's thread. Return to all comments →
n=int(input()) a=set(map(int, input().split())) m=int(input()) b=set(map(int, input().split())) difference_set = a-b
print(len(difference_set))