Skip to content

Commit

Permalink
Merge pull request #6 from rugglcon/3-solution
Browse files Browse the repository at this point in the history
add mutations function in python
  • Loading branch information
the-vampiire authored Oct 7, 2018
2 parents 5e823f3 + 104eda3 commit 7e27f32
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mutations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def mutations(words):
for l in words[1].lower():
try:
words[0].lower().index(l, 0)
except ValueError:
return False
return True

0 comments on commit 7e27f32

Please sign in to comment.