try:
    
 def operation():
    num1 = float(input("Enter the first number: "))
    operations = input("Enter the operation (+, -, *, /): ")
    num2 = float(input("Enter the second number: "))

    if operations == '+':
        print(num1 + num2)
    elif operations == '-':
        print(num1 - num2)
    elif operations == '*':
        print(num1 * num2)
    elif operations == '/':
        if num2 == 0 :
            print("Error: Cannot divide by zero")
        else:
            print(num1 / num2)
    else:
        print("Invalid operator. Please try again.")

    choice = input("Do you want to perform another calculation? (yes/no): ")
    if choice.lower() != "yes":
        print("I hope you have a good day")
    else:
        operation()
 
     

 operation()

except:
    print("Error in use !!")
   
      
    