diff --git a/strings/anagrams.py b/strings/anagrams.py index 71cc142fb2ad..6bd6da90be70 100644 --- a/strings/anagrams.py +++ b/strings/anagrams.py @@ -24,8 +24,11 @@ def signature(word: str) -> str: def anagram(my_word: str) -> list[str]: """ - Return every anagram of the given word from the dictionary. + An anagram is a word or phrase formed by rearranging the letters of a + different word or phrase, typically using all the original letters exactly + once. + Return every anagram of the given word from the dictionary. >>> anagram('test') ['sett', 'stet', 'test'] >>> anagram('this is a test')