Skip to content

Commit

Permalink
solution for Mutations the-vampiire#3 Challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
rcsmith533 authored Oct 21, 2019
1 parent 6eb5472 commit 288b790
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/intermediate/mutations_titdirt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
def checkMutation(wordList):
word1 = []
word2 = []
for i in wordList[0]:
word1.append(i.lower())
for i in wordList[1]:
word2.append(i.lower())
for i in word2:
if i not in word1:
return False
else:
word1.remove(i)
return True

0 comments on commit 288b790

Please sign in to comment.