def flipBits ( binVal ):
  """

  This function will convert the given binary string to a binary string with the
  bits flipped.

  Parameters
  ----------
  binVal:
    An binary string without the leading '0b'
  
  Returns
  -------
  flippedBinVal:
    A binary string of flipped bits without the leading '0b'

  """
  flippedBinVal = ''.join( '1' if val == '0' else '0' for val in binVal )
  return flippedBinVal