Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Set .difference() Operation in python3

# Enter your code here. Read input from STDIN. Print output to STDOUT
n1 = int(input())
set_1 = set(map(int,input().split()))
n2 = int(input())
set_2 = set(map(int,input().split()))
print(len(set_1-set_2))
Source by programs.programmingoneonone.com #
 
PREVIOUS NEXT
Tagged: #Set #Operation
ADD COMMENT
Topic
Name
6+8 =