Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ loop_sum
Function
loop_sum
example_code/item_093.py:108–112 ·
view source on GitHub ↗
(items)
Source
from the content-addressed store, hash-verified
106
107
print(
"Example 6"
)
108
def
loop_sum(items):
109
total = 0
110
for
i in items:
111
total += i
112
return
total
113
114
count = 1000
115
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected