i open python and look at the same format from lab 2 and copied it and make it run with different number using x as 23 and y as 44 and it gave me my results down below
def add (x, y)
sum = x + y
print (‘sum’)
return sum
def subtract (x, y) :
difference = x – y
print (‘difference’)
return difference
def multiply (x, y) :
multiply = x * y
print (‘multiply’)
return multiply
def divide (x, y) :
divide = x / y
print (‘divide’)
return divide
def remainder (x, y) :
remainder = x % y
print (‘remainder’)
return remainder
def comparison (x, y) :
if (x < y) :
print (‘x is less than y’)
elif (x > y) :
print (‘x is greater than y’)
else:
print (‘x is equal to y’)
x = int(input(“enter a value for x: “))
y = int(input(“enter a value for y: “))
print(add(x, y))
print(subtract(x, y))
print(multiply(x, y))
print(divide(x, y))
print(remainder(x, y))
print(comparison(x, y))