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
- Check Strict Superset
- Discussions
Check Strict Superset
Check Strict Superset
Sort by
recency
|
1121 Discussions
|
Please Login in order to post a comment
a=set(input().split()) n=int(input()) for i in range(n): b=set(input().split()) if(b.issuperset(a)): print ("True") else: print("False") this is my code
Here's my code:
super_set = set(map(int,input().split()))
number = int(input())
truth_val = []
for i in range(number): sets = set(map(int,input().split())) truth_val.append(super_set.issuperset(sets))
if False in truth_val: print(False) else: print(True)