We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a210671 commit 3c3b0d3Copy full SHA for 3c3b0d3
sets/set-intersection.py
@@ -0,0 +1,10 @@
1
+# https://www.hackerrank.com/challenges/py-set-intersection-operation/problem
2
+
3
+int(input())
4
+english_subscriptions = set(map(int, input().split()))
5
6
7
+french_subscriptions = set(map(int, input().split()))
8
9
+all_subscriptions = english_subscriptions.intersection(french_subscriptions)
10
+print(len(all_subscriptions))
0 commit comments