def build_transcript(inputs, result_lines):
    """Build a session transcript from a series of inputs and results."""
    return "\n".join(
        " "*6 + inp + ("\n" if res else "") + "\n".join(res)
        for inp, res in zip(inputs, result_lines)
    )