Set .intersection() Operation

  • + 0 comments

    My solution

    e = input("") #English Number
    en = set(input("").split()) #make a set english student
    f = input("") # french number 
    fe = set(input("").split()) # make a set french student
    both = en.intersection((fe)) # set the intersection
    print(len(both)) # How many students are in the both newspaper?