def list(small,big):
for i in range(len(big)):
if small[i]!=big[i]:
break
else:
return False
hi, i am new to python. I want to find if the numbers in a list are in another list. so [7,8,4] and [8,5,1] are subsequence of [7,8,5,4,1] and should return True
, but [7,8,8] and [7,1,8] are not and should return False
.