Set .union() Operation

  • [deleted]Challenge Author
    + 0 comments

    For Python3

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