I\'m new to Python and coding generally, and I was doing a tiny project and I\'m facing a problem:
44, 1, 6 23, 2, 7 49, 2, 3 53, 2, 1 68, 1, 6 71, 2, 7 <
44, 1, 6 23, 2, 7 49, 2, 3 53, 2, 1 68, 1, 6 71, 2, 7
You can replace the character
with open(r'c:\input.txt', 'r') as infile, open(r'c:\output.txt', 'w') as outfile: data = infile.read() data = data.replace(",", "") outfile.write(data)
Reference