Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ RGB
Class
RGB
example_code/item_051.py:51–55 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
50
print(
"Example 1"
)
51
class
RGB:
52
def
__init__(self, red, green, blue):
53
self.red = red
54
self.green = green
55
self.blue = blue
56
57
58
print(
"Example 2"
)
Callers
1
item_051.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected