-
>>> strVar = 'Thursday'
-
>>> print "today is %s" %strVar
-
today is Thursday
-
>>>
Hope that's what you are looking for.
Thank you for the quick reply.
I need it to work in the line:
c.execute('load data infile %s into table Thursday fields terminated by ",";',csv_file)
but no matter what I try eg
c.execute('load data infile %s into table %s fields terminated by ",";',csv_file,%day)
it doesn't work