try:
    num1, num2 = eval(input("Enter two numbers"))
    result = num1 / num2
    print("result is",result)

except ZeroDivisionError:
    print("Division by zero is error !!")

except SyntaxError:
    print("Comma is missing.Enter numbers seperated by comma")

except:
    print("Wrong input")

else:
    print("No exceptions")

finally:
    print("This will execute no matter what")
    
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: