def list_to_string(l: list, s: str = "\n") -> str:
  """Transforms a list into a string.

  The entries of the list are seperated by a seperator.

  Args:
      l (list): the list
      s (str, optional): the seperator. Defaults to "\\n".

  Returns:
      str: the list representation with seperator
  """

  r = ""
  for e in l:
    r += e + s
  return r