def dict_to_htmlrow(d):
    """
    converts a dictionary to a HTML table row
    """
    res = '<TR>\n'
    for k, v in d.items():
        if type(v) == str:
            res = res + '<TD><p>' + k + ':</p></TD><TD><p>' + v + '</p></TD>'
        else:
            res = res + '<TD><p>' + k + ':</p></TD><TD><p>' + str(v
                ) + '</p></TD>'
    res += '</TR>\n'
    return res
