You are viewing a single comment's thread. Return to all comments →
a = int(input()) b = set(map(int, input().split())) c = int(input()) d = set(map(int, input().split()))
e = b.union(d) count=0 for i in range(len(e)): count=count+1
print(count)
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 →
a = int(input()) b = set(map(int, input().split())) c = int(input()) d = set(map(int, input().split()))
e = b.union(d) count=0 for i in range(len(e)): count=count+1
print(count)