We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Sets
- Set .difference() Operation
- Discussions
Set .difference() Operation
Set .difference() Operation
Sort by
recency
|
365 Discussions
|
Please Login in order to post a comment
n=int(input()) s=set(input().split()) n1=int(input()) s1=set(input().split()) print(len(s - s1))
a=int(input()) english=set(map(int,input().split()))
b=int(input()) french=set(map(int,input().split()))
result=english.difference(french) print(len(result))
For Python3