From 993b0ddae65ddab4aae5f50f1d7ea58af57548ba Mon Sep 17 00:00:00 2001 From: ai-agent Date: Wed, 30 Sep 2026 10:36:25 +0000 Subject: [PATCH] Add calculator.py with basic math functions --- calculator.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 calculator.py diff --git a/calculator.py b/calculator.py new file mode 100644 index 0000000..177f373 --- /dev/null +++ b/calculator.py @@ -0,0 +1,18 @@ +def add(a, b): + """Return the sum of a and b.""" + return a + b + + +def subtract(a, b): + """Return the difference between a and b.""" + return a - b + + +def multiply(a, b): + """Return the product of a and b.""" + return a * b + + +def divide(a, b): + """Return the division of a by b.""" + return a / b \ No newline at end of file