Created
March 8, 2017 09:27
-
-
Save dimnikolos/20d3bf5429e61566039d539376bd0a9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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