Skip to content

Instantly share code, notes, and snippets.

@dimnikolos
Created March 8, 2017 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimnikolos/20d3bf5429e61566039d539376bd0a9e to your computer and use it in GitHub Desktop.
Save dimnikolos/20d3bf5429e61566039d539376bd0a9e to your computer and use it in GitHub Desktop.
def listInListOrdered(largeList,smallList):
if smallList[0] in largeList:
i = largeList.index(smallList[0])
for item in smallList:
if not item == largeList[i]:
return(False)
else:
i += 1
return(True)
else:
return(False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment