Set .intersection() Operation

  • + 0 comments

    For Python3

    n = int(input())
    english = set(input().split())
    b = int(input())
    french = input().split()
    
    print(len(english.intersection(french)))