fork download
  1.  
  2. def isSubsetStr(sub, big):
  3. return set(sub) <= set(big)
  4.  
  5.  
  6. def test(a, b):
  7. print(f"{a} {b} = {isSubsetStr(a, b)}")
  8.  
  9. test("a", "a")
  10. test("a", "ab")
  11. test("ac", "ab")
Success #stdin #stdout 0.03s 9236KB
stdin
Standard input is empty
stdout
a a = True
a ab = True
ac ab = False