Prevent ZeroDivisionError in the code below. When denominator is 0, print the message "Division by zero is not supported". In other cases, print n divided by denominator.
Zero
Report a typo
Sample Input 1:
100
1Sample Output 1:
100Sample Input 2:
3
0Sample Output 2:
Division by zero is not supportedWrite a program in Python 3
n = int(input())
denominator = int(input())
print(n // denominator)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.