Here is the code I am working with. I'm working with two sets of code. When I combine the code into one program, it works the way it is supposed to. When I attempt to import the "arithemtics" module, it will not define the variables. I have spent many hours trying to figure this out and I fear it's something extremely simple
import arithmetics
def main():
num1 = float(input('Enter a number:'))
num2 = float(input('Enter another number:'))
total(num1,num2)
difference(num1,num2)
product(num1,num2)
quotient(num1,num2)
main()
Here is the "arithmetics"input module
def total(num1,num2):
total = num1 + num2
print(format(total, ',.1f'))
def difference(num1,num2):
difference = num1 % num2
print(format(difference, ',.1f'))
def product(num1,num2):
product = num1 * num2
print(product)
def quotient(num1,num2):
quotient = num1 / num2
print(quotient)