def print_list(lines, key, sep=' '):
    """
Print a single column as a list.

:arguments:

  **lines** (``[ {'JOBID': '1234', ...}, ...]``)
    List of lines, with each line stored as a dictionary. Note that all data has to be stored as one
    as string, or as one the GooseSLURM.rich classes (no rich printing is used though).

  **key** (``'JOBID'``)
    Column to print.

:options:

  **sep** ([``' '``] | ``<str>``)
    Separator between columns.
  """
    for line in lines:
        print(line[key], end=sep)
    print('')
