I'm looking to be able to run the script everytime I get home from work and just add in how much hours I worked and the pay and have it save in a new line each time in Excel but it just keeps writing over the last value I put in. I'm using xlsxwriter.
import xlsxwriter
hours = input('| Hours worked >>')
HWadge = input('| Hourly pay >> £')
hours = int(hours)
Hwadge = int(HWadge)
total = hours * Hwadge
print('Money for shift = ','*', total, '*')
workbook = xlsxwriter.Workbook('Pay.xlsx')
worksheet = workbook.add_worksheet()
bold = workbook.add_format({'bold': True})
my_list = [hours, Hwadge, total,]
# How do I make it so I can add a value each day and it just drop down a column?
I'm looking for this output:
