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"
Created
November 28, 2020 02:45
-
-
Save akirap3/7a52475b4e386c4a79b664a86e2d78a3 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment