I have a list as follows and trying to write it out to a txt file as tab delimited.
final_out = [(['2893541', 'OVERALL', 'friendly and genuine.'], 77), (['2893382', 'SPEED', 'timely manner."'], 63)]
My output statement is but it does not eliminate the square brackets:
fh = open("text.txt", "w")
fh.write('\n'.join('%s %s' % x for x in final_out))
fh.close()
My desired output is:
2893541 OVERALL friendly and genuine. 77
2893382 SPEED timely manner. 63
Thank you so much in advance.