input: 
  def square_root_with_exception(x):
      """ Takes an input and calculates its square root. If the input is not an integer,
      a TypeError is raised with the message 'Input must be an integer'.
      >>> square_root_with_exception(16)
      4.0
      >>> square_root_with_exception('16')
      Traceback (most recent call last):
          ...
      TypeError: Input must be an integer
      """
      if not isinstance(x, int):
          raise TypeError('Input must be an integer')
      return x**0.5
  
output:     if not isinstance(x, int):
          raise TypeError('Input must be an integer')
      return x**0.5