If you must do this without libraries and your lists are sorted you can perform the match using an iterator. Progress through the second set while advancing the first one when the values are the same. You will know that the first list is a subset of the second if you get through all of it (using the iterator)
def isSubset(setA,setB):
iterA = iter(setA)
valueA = next(iterA,None)
for valueB in setB:
if valueA == valueB:
valueA = next(iterA,None)
return valueA is None
a=[3,4,5,5]
b=[3,4,5,6,7,8,9]
print(isSubset(a,b)) # False
c=[3,4,5,5,5,6,7,8,9]
print(isSubset(a,c)) # True
d=[3,4,5,5,5,6,7]
print(isSubset(b,d)) # False
if the lists are not guaranteed to be sorted you can sort them at the begining of the function by adding:
setA,setB = sorted(setA),sorted(setB)
if you want to make this faster, you can add a condition to exit the loop as soon as the end of setA is reached or when a value in set B is greater than the current value of set A:
# at beginning of for loop:
if valueA is None or valueB > valueA: break