Set .intersection() Operation

  • + 0 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))