I have a "for" loop where I iterate each time to get new values stored in same variable, now i want to store the value stored in the list variable in each rows in excel.
what i tried which doesn't works,
final_result = []
for i in range(0, 3):
result_list = ['csm_biscuit_main_dev-7188-userdevsigned', 'Logd', 'G0B0LF036224003G', 'Biscuit', 'completed', '1:47:54', 'completed']
. #some functions, which will keep changing the values in "result_list"
.
.
final_result = final_result.append(result_list)
wb = Workbook()
sh1 = wb.active
sh1.append(result_list)
wb.save("Report.xlsx")
print(final_result)
what I am getting is, for each iterations (0, 1, 2) I am getting last iteration's value stored in Report.xlsx.
is there any suggestions to get all iteration's values one by one in rows of excel sheet?