You are viewing a single comment's thread. Return to all comments →
What is wrong with my code?
n = input() d,a,c,b= n.splitlines() a = set(a.split()) b = set(b.split())
x = a.intersection(b) l = len(x) print(l)
Seems like cookies are disabled on this browser, please enable them to open this website
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →
What is wrong with my code?
n = input() d,a,c,b= n.splitlines() a = set(a.split()) b = set(b.split())
x = a.intersection(b) l = len(x) print(l)