diff --git a/python/intermediate/mutations_titdirt.py b/python/intermediate/mutations_titdirt.py new file mode 100644 index 0000000..e2e2929 --- /dev/null +++ b/python/intermediate/mutations_titdirt.py @@ -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