You are viewing a single comment's thread. Return to all comments →
n_english=int(input()) rollno_e=set(map(int,input().split()))
b_french=int(input()) rollno_f=set(map(int,input().split()))
result=rollno_e.intersection(rollno_f) print(len(result))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →
n_english=int(input()) rollno_e=set(map(int,input().split()))
b_french=int(input()) rollno_f=set(map(int,input().split()))
result=rollno_e.intersection(rollno_f) print(len(result))