##text=List of strings to be written to file with open('csvfile.csv','wb') as file: for line in text: file.write(line) file.write(' ')