Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
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
11
test_case = int(input(
""
))
12
for
i in range(test_case):
Callers
1
Check Subset.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected