excel write column

Solutions on MaxInterview for excel write column by the best coders in the world

showing results for - "excel write column"
Emil
24 Sep 2020
1import xlsxwriter
2
3workbook = xlsxwriter.Workbook('write_list.xlsx')
4worksheet = workbook.add_worksheet()
5
6my_list = [1, 2, 3, 4, 5]
7
8for row_num, data in enumerate(my_list):
9    worksheet.write(row_num, 0, data)
10
11workbook.close()
12