def format_block(block: list) -> str:
    """
    Transforms [1, 2, 3, 4, 5, 6, 7, 8] -> 1 2 3
                                           4 5 6
                                           7 8 9
    """
    return "\n".join(" ".join(str(v) for v in block[i*3:i*3+3]) 
                                        for i in range(3))