You are viewing a single comment's thread. Return to all 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?
Seems like cookies are disabled on this browser, please enable them to open this website
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →
My solution