MCPcopy 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
77print("Example 4")
78def concat_pairs(items):
79 for key in items:
80 items[key] = f"{key}={items[key]}"
81
82my_pairs = {"foo": 1, "bar": 2}
83pairs_copy = my_pairs.copy() # Creates a copy

Callers 1

item_030.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected