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