input: Write a python function to safely divide two numbers.
  assert safe_divide(10, 2) == 5
  assert safe_divide(9, 3) == 3
  assert safe_divide(7, 1) == 7
output: def safe_divide(a, b):
      try:
          return a / b
      except ZeroDivisionError:
          return float('inf')