Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ add
Function
add
Solutions/4_3/validate.py:57–60 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
55
# Examples
56
if
__name__ ==
'__main__'
:
57
def
add(x, y):
58
Integer.check(x)
59
Integer.check(y)
60
return
x + y
61
62
class
Stock:
63
name = NonEmptyString()
Callers
nothing calls this directly
Calls
1
check
Method · 0.45
Tested by
no test coverage detected