def set_column_hidden_attribute(column_limit, columns):
    """Sets the hidden attribute on columns higher
    than the column_limit.

    Args:
     column_limit (int) The number of columns that can be displayed.
     columns (list of Column) A list of columns.
    """
    if len(columns) <= column_limit:
        return columns

    x = 0
    for column in columns:
        x += 1
        if x > column_limit:
            column.hidden = True