Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ ascii_capitalize
Function
ascii_capitalize
04_strings_unicode/python/uppercase.py:1–7 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
1
def
ascii_capitalize(name):
2
if
name:
3
first = name[0]
4
if
first.isascii():
5
return
first.upper() + name[1:]
6
return
name
7
return
""
8
9
10
names = [
"alice"
,
"bob"
,
"özgül"
,
"ßad"
]
Callers
1
uppercase.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected