I am trying to write a string to a certain cell in an Excel file by Python. This is what I have written:
from openpyxl import Workbook
wb = Workbook()
ws = wb.active
ws.cell(row =1, column=2).value = t1
However, the following error appears:
TypeError: Value must be a list, tuple, range or generator, or a dict. Supplied value is <class 'str'>
How can I write a string to cell?
