MCPcopy Create free account
hub / github.com/Avisikta-Majumdar/HackerRank_Python_Solutions / Subset

Function Subset

Check Subset.py:1–9  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

1def Subset(a,b):
2 result = 0
3 for i in a:
4 if i in b:
5 result = 1
6 else:
7 result = 0
8 break
9 return True if result == 1 else False# Using Ternary Operator
10
11test_case = int(input(""))
12for i in range(test_case):

Callers 1

Check Subset.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected