# Taking input from the user
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
# Asking user for the operation
operation = input("Enter operation (+, -, *, /): ")
# Performing the operation
if operation == "+":
result = num1 + num2
elif operation == "-":
result = num1 - num2
elif operation == "*":
result = num1 * num2
elif operation == "/":
if num2 == 0:
result = "Error: Division by zero"
else:
result = num1 / num2
else:
result = "Invalid operation"
# Displaying the result
print(f"Result: {result}")