Question: Write a program that allows you to erase multiple spaces in a text file. Then rewrite the sentence without extra spaces in another text file.
Write a program that allows you to erase multiple spaces in a text file. Then rewrite the
sentence without extra spaces in another text file. Marks
Input:
I love Python Programming.
Output:
I love Python Programming.
Hints:
You can use the split function to separate the words into a list
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
