How to Reformat a Text File in Python
The input file and the desired output The task is to reformat the following input format. To the following output format. The Python code doing the job The following simple code could do the reformatting in less than a second for a file that contained multiple hundreds quotes.