MCPcopy 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
18def add(x: float, y: float) -> float:
19 """Return the sum of x and y."""
20 return x + y
21
22
23def subtract(x: float, y: float) -> float:

Callers 1

calculatorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected