My code looks like this
import csv
import datetime
now = datetime.datetime.now()
month_year = (now.month, now.year)
print(month_year)
outputfilename = 'Filename'+month_year+'.csv'
print(outputfilename)
print(month_year) gets me my month year
(11, 2019)
and I would like the date to be in my filename however
outputfilename = 'Filename'+month_year+'.csv'
print(outputfilename)
gives me the following error
outputfilename = 'Filename'+month_year+'.csv'
TypeError: must be str, not tuple
Any suggestions please?