num1 = float(input("Enter a number: "))
op= input("Enter operator")
num2 = float(input("Enter another number: "))

if op== "+":
    print(num1+num2)
elif op == "-":
    print(num1-num2)
elif op == "*":
    print(num1*num2)
elif op == "/":
    print(num1/num2)
else:
    print("invalid operator")

#result= float(num1) + float(num2)
#print(result)