We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c4444 commit 24e1a27Copy full SHA for 24e1a27
[5 kyu]Where my anagrams at.py
@@ -0,0 +1,4 @@
1
+def anagrams(word, words):
2
+ return [w for w in words if sorted(w) == sorted(word)]
3
+
4
+print(anagrams('aabb',['aabb','bbaa','ccaa','baba']))
0 commit comments