def print_fold(column_to_fold, total_columns, skips):
    """Print a row that removes the given column and shifts all the following
    columns."""
    format_str = '{:<2}' * (total_columns - 1)
    cols = []
    for i in range(column_to_fold):
        # print(i)
        if i in skips:
            cols.append("  ")
        else:
            cols.append("| ")
    for i in range(column_to_fold + 1, total_columns):
        # print(i)
        if i in skips:
            cols.append("  ")
        else:
            cols.append(" /")
    print(format_str.format(*cols))
def print_fold ( column_to_fold , total_columns , skips ) : format_str = '{:<2}' * ( total_columns - 1 ) cols = [ ] for i in range ( column_to_fold ) : if i in skips : cols . append ( "  " ) else : cols . append ( "| " ) for i in range ( column_to_fold + 1 , total_columns ) : if i in skips : cols . append ( "  " ) else : cols . append ( " /" ) print ( format_str . format ( * cols ) )
Print a row that removes the given column and shifts all the following
    columns.