I have a code that looks like this:
with open('Recipe 2.txt', 'w') as fp:
a = csv.writer(fp)
data = [['VER:3;'],
['Recipe 0;'],
['Last[1,1];'+d+';'],
a.writerows(data)
d is defined earlier.
My problem is that when i write this to a text file, i get quotationmarks around the last row like this:
Recipe 0;
"Last[1,1];1.5;"
How can I get rid of the quotationmarks on the last line?
Best, Jonas