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