You are viewing a single comment's thread. Return to all comments →
n=int(input()) eng=set(map(int,input().split())) m=int(input()) french=set(map(int,input().split())) only_eng1=eng.difference(french) onlyeng2=list(only_eng1) print(len(onlyeng2))
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()) eng=set(map(int,input().split())) m=int(input()) french=set(map(int,input().split())) only_eng1=eng.difference(french) onlyeng2=list(only_eng1) print(len(onlyeng2))