def write_row(worksheet, content, row_num, style):
    """ write single row to worksheet """

    # write row depending on column number
    for col_num in range(len(content)):
        worksheet.write(row_num, col_num, content[col_num], style)

    # return worksheet object
    return worksheet