Add calculator.py with basic math functions

This commit is contained in:
ai-agent 2026-09-30 10:36:25 +00:00
parent 8326bba01d
commit 993b0ddae6

18
calculator.py Normal file
View file

@ -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