Skip to content

Instantly share code, notes, and snippets.

@akirap3
Created November 28, 2020 02:45
Show Gist options
  • Save akirap3/7a52475b4e386c4a79b664a86e2d78a3 to your computer and use it in GitHub Desktop.
Save akirap3/7a52475b4e386c4a79b664a86e2d78a3 to your computer and use it in GitHub Desktop.
def checkSequence(word, lword):
    find = 0
    for chr in word:
        find = lword.find(chr, find)
        if find != -1:
            find += 1
        else:
            return "No"
    return "Yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment