mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-06 21:09:15 +08:00
25 lines
292 B
Python
25 lines
292 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 |