You are viewing a single comment's thread. Return to all comments →
u = int(input()) d = set(map(int,input().split())) h = int(input()) o = set(map(int,input().split())) print(len(d-o)) or print(len(d.difference(o)))
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 →
u = int(input()) d = set(map(int,input().split())) h = int(input()) o = set(map(int,input().split())) print(len(d-o)) or print(len(d.difference(o)))