python superset 28 29

Solutions on MaxInterview for python superset 28 29 by the best coders in the world

showing results for - "python superset 28 29"
Lucas
28 Aug 2019
1# Check Strict Superset in Python - Hacker Rank Solution
2# Python 3
3# Enter your code here. Read input from STDIN. Print output to STDOUT
4# Check Strict Superset in Python - Hacker Rank Solution START
5
6storage = set(input().split())
7N = int(input())
8output = True
9
10for i in range(N):
11    storage2 = set(input().split())
12    if not storage2.issubset(storage):
13        output = False
14    if len(storage2) >= len(storage):
15        output = False
16
17print(output)
18# Check Strict Superset in Python - Hacker Rank Solution END
19