Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ concat_pairs
Function
concat_pairs
example_code/item_030.py:78–80 ·
view source on GitHub ↗
(items)
Source
from the content-addressed store, hash-verified
76
77
print(
"Example 4"
)
78
def
concat_pairs(items):
79
for
key in items:
80
items[key] = f
"{key}={items[key]}"
81
82
my_pairs = {
"foo"
: 1,
"bar"
: 2}
83
pairs_copy = my_pairs.copy()
# Creates a copy
Callers
1
item_030.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected