strings.anagrams¶
Attributes¶
Functions¶
|
Return every anagram of the given word |
|
Return a word sorted |
Module Contents¶
- strings.anagrams.anagram(my_word: str) list[str] ¶
Return every anagram of the given word >>> anagram(‘test’) [‘sett’, ‘stet’, ‘test’] >>> anagram(‘this is a test’) [] >>> anagram(‘final’) [‘final’]
- strings.anagrams.signature(word: str) str ¶
Return a word sorted >>> signature(“test”) ‘estt’ >>> signature(“this is a test”) ‘ aehiisssttt’ >>> signature(“finaltest”) ‘aefilnstt’
- strings.anagrams.all_anagrams¶
- strings.anagrams.data: str¶
- strings.anagrams.word_by_signature¶
- strings.anagrams.word_list¶