MCPcopy 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
66print("Example 3")
67def capitalize_items(items):
68 for i in range(len(items)):
69 items[i] = items[i].capitalize()
70
71my_items = ["hello", "world"]
72items_copy = my_items[:] # Creates a copy

Callers 1

item_030.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected