Make multiple functions that will return the sum, difference, modulus, product, quotient, and the exponent respectively.

Please use the following function names:


addition = **add**

multiply = **multiply**

division = **divide** (both integer and float divisions are accepted)

modulus = **mod**

exponential = **exponent**

subtraction = **subt**



*Note: All math operations will be:
a (operation) b*

Difficulty: EASY
Tags: Fundamentals

Starter code:
def add(a,b):
	

Solutions:
add = lambda a, b: a + b
multiply = lambda a, b: a * b
divide = lambda a, b: a / b
mod = lambda a, b: a % b
exponent = lambda a, b: a ** b
subt = lambda a, b: a - b


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

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

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

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

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

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


from operator import add as add, mul as multiply, truediv as divide, mod as mod, pow as exponent, sub as subt


(add, multiply, divide, mod, exponent, subt) = (lambda x, y: x + y, lambda x, y: x * y, lambda x, y: x / y, lambda x, y: x % y, lambda x, y: x ** y, lambda x, y: x - y)


add = int.__add__
multiply = int.__mul__
divide = int.__truediv__
mod = int.__mod__
exponent = int.__pow__
subt = int.__sub__


from operator import *
(add, multiply, divide, mod, exponent, subt) = (add, mul, floordiv, mod, pow, sub)


def add(a, b):
	add = a + b
	return add

def multiply(a, b):
	multi = a * b
	return multi

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

def mod(a, b):
	modu = a % b
	return modu

def exponent(a, b):
	exp = a ** b
	return exp

def subt(a, b):
	subtraction = a - b
	return subtraction


import math

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

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

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

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

def mod(a, b):
	return divmod(a, b)[1]

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


import math

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

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

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

def mod(a, b):
	return math.fmod(a, b)

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

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


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

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

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

def exponent(a, b):
	sum = a
	i = 1
	while i < b:
		sum = a * sum
		i += 1
	return sum

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

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


(add, multiply, divide, mod, exponent, subt) = (eval('lambda a, b: a' + s + 'b') for s in ('+', '*', '/', '%', '**', '-'))


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

def subt(a, b):
	return add(a, -b)

def multiply(a, b):
	return sum([max(a, b)] * min(a, b))

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

def mod(a, b):
	return a - multiply(b, divide(a, b))

def exponent(a, b):
	return multiply(a, exponent(a, b - 1)) if b else 1


import operator

def add(a, b):
	return operator.__add__(a, b)

def multiply(a, b):
	return operator.__mul__(a, b)

def divide(a, b):
	return operator.__floordiv__(a, b)

def mod(a, b):
	return operator.__mod__(a, b)

def exponent(a, b):
	return operator.__pow__(a, b)

def subt(a, b):
	return operator.__sub__(a, b)


add = __import__('operator').add
divide = __import__('operator').truediv
exponent = __import__('operator').pow
mod = __import__('operator').mod
multiply = __import__('operator').mul
subt = __import__('operator').sub


import operator

def add(a, b):
	return operator.add(a, b)

def multiply(a, b):
	return operator.mul(a, b)

def divide(a, b):
	return operator.floordiv(a, b)

def mod(a, b):
	return operator.mod(a, b)

def exponent(a, b):
	return operator.pow(a, b)

def subt(a, b):
	return operator.sub(a, b)


def add(a, b):
	return a + b
multiply = lambda x, y: x * y
divide = lambda x, y: x / y
mod = lambda x, y: x % y
exponent = lambda x, y: x ** y
subt = lambda x, y: x - y


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

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

def divide(a, b):
	try:
		return a / b
	except:
		return 0

def mod(a, b):
	try:
		return a % b
	except:
		return 0

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

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


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

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

def divide(a, b):
	return a / b if not b == 0 else 0

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

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

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


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

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

def divide(a, b):
	return a // b if int(a) == a and int(b) == b else a / b

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

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

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


def add(x, y):
	return x + y

def multiply(x, y):
	return x * y

def divide(x, y):
	return x / y

def mod(x, y):
	return x % y

def exponent(x, y):
	return x ** y

def subt(x, y):
	return x - y


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

def multiply(a, b):
	result = 0
	for i in range(b):
		result += a
	return result

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

def mod(a, b):
	while a >= b:
		a -= b
	return a

def exponent(a, b):
	result = a
	for i in range(b - 1):
		result *= a
	return result

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


import math
from decimal import Decimal

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

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

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

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

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

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


def add(numUno, numDos):
	return numUno + numDos

def multiply(numUno, numDos):
	return numUno * numDos

def divide(numUno, numDos):
	return numUno / numDos

def mod(numUno, numDos):
	return numUno % numDos

def exponent(numUno, numDos):
	return numUno ** numDos

def subt(numUno, numDos):
	return numUno - numDos


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

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

def divide(a, b):
	return a / b if b != 0 else 'Error DIVIDE 0'

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

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

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


add = lambda x, y: x + y
multiply = lambda x, y: x * y
divide = lambda x, y: x / y
mod = lambda x, y: x % y
exponent = lambda x, y: x ** y

def exponent(x, y):
	print('exponent')
	return x ** y
subt = lambda x, y: x - y


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

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

def divide(a, b):
	try:
		return a / b
	except ValueError:
		return 'Error'

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

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

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


def add(numeroUno, numeroDos):
	return numeroUno + numeroDos

def multiply(numeroUno, numeroDos):
	return numeroUno * numeroDos

def divide(numeroUno, numeroDos):
	return numeroUno / numeroDos

def mod(numeroUno, numeroDos):
	return numeroUno % numeroDos

def exponent(numeroUno, numeroDos):
	return numeroUno ** numeroDos

def subt(numeroUno, numeroDos):
	return numeroUno - numeroDos


(add, multiply, divide, mod, exponent, subt) = ((lambda ope: lambda a, b: eval(str(a) + ope + str(b)))(operator) for operator in ('+', '*', '/', '%', '**', '-'))


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

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

def divide(a, b):
	try:
		return a / b
	except DivisionZeroError:
		return False

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

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

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


from math import *

def add(a, b):
	print(a + b)
	return a + b

def multiply(a, b):
	print(a * b)
	return a * b

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

def mod(a, b):
	print(a % b)
	return a % b

def exponent(a, b):
	print(a ^ b)
	return a ** b

def subt(a, b):
	print(a - b)
	return a - b


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

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

def divide(a, b):
	ans = ''
	try:
		ans = a / b
	except ZeroDivisionError:
		print('division by zero')
	else:
		return ans

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

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

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


def add(a, b):
	if a != str(a) or b != str(b):
		return a + b
	return a + ' + ' + b

def multiply(a, b):
	if a != str(a) or b != str(b):
		return a * b
	return a + ' * ' + b

def divide(a, b):
	if a != str(a) or b != str(b):
		return a / b
	return a + ' / ' + b

def mod(a, b):
	if a != str(a) or b != str(b):
		return a % b
	return a + ' % ' + b

def exponent(a, b):
	if a != str(a) or b != str(b):
		return a ** b
	return a + ' ** ' + b

def subt(a, b):
	if a != str(a) or b != str(b):
		return a - b
	return a + ' - ' + b


def add(a, b):
	return a + b
print(add(1, 2))

def multiply(a, b):
	return a * b
print(multiply(2, 2))

def divide(a, b):
	return a / b
print(divide(6, 2))

def mod(a, b):
	return a % b
print(mod(10, 3))

def exponent(a, b):
	return a ** b
print(exponent(4, 4))

def subt(a, b):
	return a - b
print(subt(7, 1))


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

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

def divide(a, b):
	return a / b if b != 0 else 'division by Zero'

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

def exponent(a, b):
	return pow(a, b)

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


from operator import *
multiply = mul
exponent = pow
subt = sub
divide = lambda a, b: a / b
add = lambda a, b: a + b


from math import modf
add = lambda x, y: x + y
multiply = lambda x, y: x * y
mod = lambda x, y: x % y
exponent = pow
subt = lambda x, y: x - y
divide = lambda x, y: x / y


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

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

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

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

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

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


from operator import *
addition = add
multiply = mul
divide = truediv
modulus = mod
exponent = pow
subt = sub


def add(x, y):
	return x + y

def multiply(x, y):
	return x * y

def divide(x, y):
	return 0 if y == 0 else x / y

def mod(x, y):
	return x % y

def exponent(x, y):
	return 0 if x == 0 and y == 0 else x ** y

def subt(x, y):
	return x - y


add = lambda x, y: x + y
multiply = lambda x, y: x * y
divide = lambda x, y: 0 if y == 0 else x / y
mod = lambda x, y: x % y
exponent = lambda x, y: 0 if x == 0 and y == 0 else x ** y
subt = lambda x, y: x - y


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

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

def divide(a, b):
	return a / b if b else float('nan')

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

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

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


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

def multiply(c, d):
	return c * d

def divide(poopy, pants):
	return poopy / pants

def mod(jak, baj):
	return jak % baj

def exponent(op, po):
	return op ** po

def subt(almost, finished):
	return almost - finished


def add(a, b):
	plus = a + b
	return plus

def multiply(a, b):
	times = a * b
	return times

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

def mod(a, b):
	mods = a % b
	return mods

def exponent(a, b):
	expos = a ** b
	return expos

def subt(a, b):
	subs = a - b
	return subs