Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ add
Function
add
simple_calculator/simple_calculator.py:2–3 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
1
# Define functions for each operation
2
def
add(x, y):
3
return
x + y
4
5
6
def
subtract(x, y):
Callers
1
simple_calculator.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected