Create and write data to xlwt.Workbook instance and save as an Excel file.
Solution for Write to an Excel file in Python : You can use xlwt.workbook.add_sheet() to write to an Excel file Call xlwt.Workbook() to instantiate a new Workbook.
To add a sheet to the Workbook, call xlwt.workbook.add_sheet(sheet_name) with sheet_name as the name of the to add to the workbook.