Programming Examples
Python program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by single space
Write a program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by single space.
Output/ Explanation:
Enter the File Name 1 : file1.txt
Enter the File Name 2 : file2.txt