Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ count
Function
count
Lib/test/libregrtest/utils.py:103–107 ·
view source on GitHub ↗
(n: int, word: str)
Source
from the content-addressed store, hash-verified
101
102
103
def
count(n: int, word: str) -> str:
104
if
n == 1:
105
return
f
"{n} {word}"
106
else
:
107
return
f
"{n} {word}s"
108
109
110
def
printlist(x, width=70, indent=4, file=None):
Callers
15
fmean
Function · 0.85
_rank
Function · 0.85
__init__
Method · 0.85
_build_tree
Function · 0.85
gen_sizes
Method · 0.85
test_count
Method · 0.85
test_count_with_step
Method · 0.85
test_count_threading
Method · 0.85
test_filter
Method · 0.85
test_filterfalse
Method · 0.85
test_zip
Method · 0.85
test_ziplongest
Method · 0.85
Calls
no outgoing calls
Tested by
15
gen_sizes
Method · 0.68
test_count
Method · 0.68
test_count_with_step
Method · 0.68
test_count_threading
Method · 0.68
test_filter
Method · 0.68
test_filterfalse
Method · 0.68
test_zip
Method · 0.68
test_ziplongest
Method · 0.68
test_map
Method · 0.68
test_starmap
Method · 0.68
test_islice
Method · 0.68
test_count
Method · 0.68