# Example of a basic calculator
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y
def divide(x, y):
if y != 0:
return x / y
else:
return "Cannot divide by zero."
# Test the calculator
num1 = 10
num2 = 5
print("Sum:", add(num1, num2)) # Output: Sum: 15
print("Difference:", subtract(num1, num2)) # Output: Difference: 5
print("Product:", multiply(num1, num2)) # Output: Product: 50
print("Quotient:", divide(num1, num2)) # Output: Quotient: 2.0