Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion strings/anagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
Loading