Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Set .intersection() operation solution in python3

# Enter your code here. Read input from STDIN. Print output to STDOUT
num1, st1, num2, st2 = (set(input().split()) for i in range(4))
print(len(st1.intersection(st2)))
Source by programs.programmingoneonone.com #
 
PREVIOUS NEXT
Tagged: #Set #operation #solution
ADD COMMENT
Topic
Name
2+8 =