I would like to convert the following csv file to a txt file.
import csv
csv_file = (r'symbols/Input_weekly_insidebar.csv')
txt_file = (r'symbols/Input_weekly_insidebar.txt')
with open(txt_file, "w") as my_output_file:
with open(csv_file, "r") as my_input_file:
[ my_output_file.write(','.join(row)) for row in csv.reader(my_input_file)]
my_output_file.close()
In the txt output file each symbol should have a comma ',' after the symbol.
Result should be:

Could you tell me what is wrong in my code? Because the above code produce an output without commas.
Thanks for your support.

join().my_output_file.write(',', join([ row for row in csv.reader(my_input_file)])