input: Write a function to add two numbers and handle type errors.
  assert add(2, 3) == 5
  assert add(-1, 7) == 6
  assert add('a', 'b') == TypeError
output: def add(a, b):
      try:
          return a + b
      except TypeError:
          return TypeError