def generate_key_val_table_without_headings(title, data_list, html_escape=True, width='70%'):
    'Returns the html code for a key-value table (2 cols) without col names'
    code = ''
    if title:
        code += f'<h2>{title}</h2>'
    table_header_code = '\n        <div class="table-responsive">\n            <table class="table table-bordered table-hover table-sm" width={}>\n                <tbody>\n    '
    table_footer_code = '\n                </tbody>\n            </table>\n        </div>\n    '
    code += table_header_code.format(width)
    if html_escape:
        for row in data_list:
            code += (('<tr>' + ''.join(('<td>{}</td>'.format(html.escape(str(x))) for x in row))) + '</tr>')
    else:
        for row in data_list:
            code += (('<tr>' + ''.join(('<td>{}</td>'.format(str(x)) for x in row))) + '</tr>')
    code += table_footer_code
    return code
Returns the html code for a key-value table (2 cols) without col names
def generate_key_val_table_without_headings(title, data_list, html_escape=True, width='70%'):
    
    code = 
    if title:
        code += f'<h2>{title}</h2>'
    table_header_code = '\n        <div class="table-responsive">\n            <table class="table table-bordered table-hover table-sm" width={}>\n                <tbody>\n    '
    table_footer_code = '\n                </tbody>\n            </table>\n        </div>\n    '
    code += table_header_code.format(width)
    if html_escape:
        for row in data_list:
            code += (('<tr>' + .join(('<td>{}</td>'.format(html.escape(str(x))) for x in row))) + '</tr>')
    else:
        for row in data_list:
            code += (('<tr>' + .join(('<td>{}</td>'.format(str(x)) for x in row))) + '</tr>')
    code += table_footer_code
    return code