You are viewing a single comment's thread. Return to all comments →
eN = int(input()) #English subscriptions EList = set(map(int, input().split())) #English Students fN = int(input()) #Fremch Subsriptions FList = set(map(int, input().split())) #French Students
allList = EList.union(FList)
print(len(allList))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .union() Operation
You are viewing a single comment's thread. Return to all comments →
Hector Gonzalez
eN = int(input()) #English subscriptions EList = set(map(int, input().split())) #English Students fN = int(input()) #Fremch Subsriptions FList = set(map(int, input().split())) #French Students
allList = EList.union(FList)
print(len(allList))