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