Safe Divider (Try/Except)

Easy
#error-handling

Input: `a`, `b` (numbers). Return: `a / b` or 'Error' if b is 0.

Example

Input: 10, 2
Output: 5.0
Need a hint?
  • Use try-except ZeroDivisionError
Run your code to see output