def add(x,y):
y = int( input("Enter First number "))
x = int( input("Enter Second number "))
answer = x + y
print (answer)
def subtract(x,y):
answer = x - y
print (answer)
y = int ( input("Enter First number "))
x = int ( input("Enter Second number "))
operation = input("Subtract or Add ")
if operation == "add":
add(x,y)
else:
subtract(x,y)
I keep getting an error saying variables x and y aren't being used. Please help. I have been stuck on this for a while now.