Set .intersection() Operation

  • + 0 comments

    N=int(input()) # english newspaper English=set(map(int,input().split()))

    N1=int(input()) # french newspaper French=set(map(int,input().split()))

    '''Common_subscription=English.intersection(French) print(len(Common_subscription))'''

    YOU CAN ALSO USE THIS

    METHOD

    print(len(English.intersection(French)))