Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ add
Function
add
simple_calculator.py:18–20 ·
view source on GitHub ↗
Return the sum of x and y.
(x: float, y: float)
Source
from the content-addressed store, hash-verified
16
17
18
def
add(x: float, y: float) -> float:
19
""
"Return the sum of x and y."
""
20
return
x + y
21
22
23
def
subtract(x: float, y: float) -> float:
Callers
1
calculator
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected