Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ word_patterns.py
File
word_patterns.py
strings/word_patterns.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
get_word_pattern(word: str) -> str:
2
""
"
3
Returns numerical pattern of character appearances in given word
4
>>> get_word_pattern(
""
)
Callers
nothing calls this directly
Calls
2
get_word_pattern
Function · 0.85
append
Method · 0.45
Tested by
no test coverage detected