Set .symmetric_difference() Operation

  • + 0 comments

    For Python3 Platform

    n = int(input())
    english = set(map(int, input().split()))
    b = int(input())
    french = map(int, input().split())
    
    print(len(english.symmetric_difference(french)))