Question: I need this done in python please, thank you! I need to create a program that takes two numeric values from input and divides them.

I need this done in python please, thank you!

I need to create a program that takes two numeric values from input and divides them. I need to include a try-except structure that will catch a ZeroDivisionError and print a clear message to the program user that describes the problem.

Examples: x = 10 y = 0 z = x / y

Throws an error that looks like this: #Traceback (most recent call last): # File "", line 1, in # z = x/y #ZeroDivisionError: division by zero

Thank you for the help!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!