DevJourney · code I wrote while learning

calculator.py

171 B
def add(a,b):
    return a + b

def subtract(a,b):
    return a - b

def product(a,b):
    return a * b

def divide(a,b):
    return a/b

def modulo(a,b):
    return a%b