Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ capitalize_items
Function
capitalize_items
example_code/item_030.py:67–69 ·
view source on GitHub ↗
(items)
Source
from the content-addressed store, hash-verified
65
66
print(
"Example 3"
)
67
def
capitalize_items(items):
68
for
i in range(len(items)):
69
items[i] = items[i].capitalize()
70
71
my_items = [
"hello"
,
"world"
]
72
items_copy = my_items[:]
# Creates a copy
Callers
1
item_030.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected