Objective
Develop a Python program that prompts the user for two numbers (x and y) and displays the result of the division operation.
The program should include a check to prevent division by zero using an if statement. If the user attempts to divide by zero, a message will be displayed indicating Division by zero is not possible.
Instructions
- Solicit two numbers from the user (x, y).
- Perform the division operation of x by y.
- Include a check to avoid division by zero using an if statement.
- If the user attempts to divide by zero, display the message "Division by zero is not possible."
6
0
Division by zero is not possible
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise