Answers for "excel write in row"

0

excel write in row

import xlsxwriter

workbook = xlsxwriter.Workbook('write_list.xlsx')
worksheet = workbook.add_worksheet()

my_list = [1, 2, 3, 4, 5]

for col_num, data in enumerate(my_list):
    worksheet.write(0, col_num, data)

workbook.close()
Posted by: Guest on May-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language