You are viewing a single comment's thread. Return to all comments →
i1 = int(input()) l1 = set(input().split()) i2 = int(input()) l2 = set(input().split())
print(len(l1.union(l2)))
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 →
i1 = int(input()) l1 = set(input().split()) i2 = int(input()) l2 = set(input().split())
print(len(l1.union(l2)))