Set .intersection() Operation

  • + 0 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)