def safe_divide(a, b):
try:
result = a / b
return result
except ZeroDivisionError:
return "Error: Division by zero"
numerator = 10
denominator = 0
result = safe_divide(numerator, denominator)
print(f"Result of division: {result}")Output:
ERROR!
Result of division: Error: Division by zero


