set intersection 28 29 operation solution in python3

Solutions on MaxInterview for set intersection 28 29 operation solution in python3 by the best coders in the world

showing results for - "set intersection 28 29 operation solution in python3"
Thibault
28 Jul 2017
1# Enter your code here. Read input from STDIN. Print output to STDOUT
2num1, st1, num2, st2 = (set(input().split()) for i in range(4))
3print(len(st1.intersection(st2)))