act = input("Enter name of the activity") cellone = int(input("Enter the order number of activity")) cell1 = "A" + cellone worksheet.write(cell1, act) I'm trying to concatenate A and cellone but I'm getting some error saying that I can't concatenate string and an integer, is there a way to do this?
write()function take integer values as well as strings so you could just do this:worksheet.write(cellone -1, 0, act). See the XlsxWriter docs: xlsxwriter.readthedocs.io/worksheet.html#worksheet-write