Skip to content

Commit 59d8433

Browse files
Create Set.intersection().py
1 parent 837c65c commit 59d8433

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Challenges/Sets/Set.intersection().py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
num_eng_subs = input()
2+
eng_subs = set(map(int, input().split()))
3+
num_fr_subs = input()
4+
fr_subs = set(map(int, input().split()))
5+
print(len(eng_subs.intersection(fr_subs)))

0 commit comments

Comments
 (0)