Set .intersection() Operation

  • + 0 comments

    english = int(input()) english_s = set(list(map(int, input().split()))) france = int(input()) france_s = set(list(map(int, input().split()))) print(len(english_s & france_s))