strings.anagrams

Attributes

all_anagrams

data

word_by_signature

word_list

Functions

anagram(→ list[str])

Return every anagram of the given word

signature(→ str)

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