def _generate_table_head(columns_order):
    """
    Function generates table header
    :param columns_order: iterable which contains order of columns to present
    :return: str with HTML code related to table header
    """
    result = "<thead>"
    for column_name in columns_order:
        result += "<th>{column_name}</th>".format(column_name=column_name)
    result += "</thead>"
    return result