def comment_lines(text, prefix='# '):
    """
    Build a Python comment line from input text.

    Parameters
    ----------
    text : str
        Text to comment out.
    prefix : str
        Character to append to the start of each line.
    """
    return prefix + ('\n' + prefix).join(text.split('\n'))
