Skip to content

Commit bb21e27

Browse files
committed
Finished working on the anagram challenge
1 parent 96c0ce3 commit bb21e27

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
504 Bytes
Binary file not shown.
Binary file not shown.

anagram/anagram.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
def find_anagrams(word, candidates):
2-
pass
1+
from collections import Counter
2+
def find_anagrams(word, candidates): return [item for item in candidates if sorted(item.lower()) == sorted(word.lower()) and item.lower() != word.lower()]

0 commit comments

Comments
 (0)