You are viewing a single comment's thread. Return to all comments →
eng = int(input())
eng_roll = set(map(int, input().split()))
french = int(input())
french_roll = set(map(int, input().split()))
union = eng_roll.union(french_roll)
print(len(union))
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 →
eng = int(input())
eng_roll = set(map(int, input().split()))
french = int(input())
french_roll = set(map(int, input().split()))
union = eng_roll.union(french_roll)
print(len(union))