Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ take_truncated_action
Function
take_truncated_action
example_code/item_009.py:116–119 ·
view source on GitHub ↗
(light)
Source
from the content-addressed store, hash-verified
114
GREEN =
"green"
115
116
def
take_truncated_action(light):
117
match light:
118
case RED:
119
print(
"Stop"
)
120
121
122
print(
"Example 6"
)
Callers
1
item_009.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected