Skip to main content

Set .difference() Operation Hackerrank Solution in Python 3


a=int(input())
set1=set(map(int,input().split()))
b=int(input())
set2=set(map(int,input().split()))
set3=set1.difference(set2)
print(len(set3))

Comments