How can you pre-prend a list of names to the example below? I want to call a method many time but the first part will change from ws1, ws2, ws3,...This method is from a module called "xlsxwriter" used to write rows of data inside an excel worksheet.
For example, first loop should create:
ws1.write(1, 0, 'Platform', format)
ws_names = ['ws1', 'ws2', 'ws3']
for entry in ws_names:
'%s'.write (1, 0, 'Platform', format) % entry
I am getting this error: AttributeError: 'str' object has no attribute 'write'
I tried, entry.write (1, 0, ... but I get the same error.