79315215

Date: 2024-12-29 08:37:17
Score: 1
Natty:
Report link

Maybe count the number of occurrences of each item in the set of the list:

def issublist(lin, lout):
inset = set(lin)
for item in inset:
    if lin.count(item) > lout.count(item):
        return False
return True

I think it works, at least for your test cases.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MarioCrafting