30-Days-Of-Python/mypackage/arithmetics.py
2019-12-10 21:42:10 +02:00

29 lines
296 B
Python

def add_numbers(*args):
total = 0
for num in args:
total += num
return total
def subtract(a, b):
return (a - b)
def multiple(a, b):
return a * b
def division(a, b):
return a / b
def remainder(a, b):
return a % b
def power(a, b):
return a ** b