Solution Review: Handle `Divide by Zero` Exception
This review provides a detailed explanation of the solution to the "Handle `Divide by Zero` Exception" challenge.
We'll cover the following...
Solution
Let’s understand the solution of the challenge in Python and Powershell.
Python
Press + to interact
try:num1=5num2=0result=num1/num2print(result)except:print("Error: Division by zero is not allowed!")
Explanation
- When a statement is observed for any