Answers for "python superset()"

0

python superset()

# Check Strict Superset in Python - Hacker Rank Solution
# Python 3
# Enter your code here. Read input from STDIN. Print output to STDOUT
# Check Strict Superset in Python - Hacker Rank Solution START

storage = set(input().split())
N = int(input())
output = True

for i in range(N):
    storage2 = set(input().split())
    if not storage2.issubset(storage):
        output = False
    if len(storage2) >= len(storage):
        output = False

print(output)
# Check Strict Superset in Python - Hacker Rank Solution END
Posted by: Guest on April-18-2021

Code answers related to "python superset()"

Python Answers by Framework

Browse Popular Code Answers by Language