You can download this code by clicking the button below.
This code is now available for download.
Define a function that performs division, and returns an error message if the divisor is zero.
Technology Stack : Built-in library
Code Type : Function
Code Difficulty : Intermediate
def zebra(arg1, arg2):
try:
return arg1 / arg2
except ZeroDivisionError:
return "Error: Division by zero"