Question: In Python please and comprehension) 1.1 (10 points) Write two python programs: one (write.py) is to create a text file (myfilel.txt) with the following contents.

In Python please In Python please and comprehension) 1.1 (10 points) Write two python programs:

and comprehension) 1.1 (10 points) Write two python programs: one (write.py) is to create a text file (myfilel.txt) with the following contents. The second program (remove.py) reads and removes the fifth word from myfilel.txt and saves the changed text into a new file (myfile2.txt). Tmyfile1.txt contains the following: "One Two Three Four Five InSix Seven Eight Nine Ten python programming language is cool" You should see the file (myfilel.txt) created in the same source program (write.py) directory. Open the text file (myfilel.txt) and check the contents to be sure. For the removed program (remove.py), use the .split() method to construct a list of words with the fifth word removed. The '.pop(x)' function may be an easy way to remove the fifth word. The removal program saves the results into a new text file (myfile2.txt) You should see the file (myfile2.txt) created in the same source program (remove.py) directory. Open the text file (myfile2.txt) and check the contents to be sure. Your remove.py should display the following: list read from the file: ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'python', 'programming', 'language', 'is', 'cool'] after removing the fifth word: One Two Three Four Six Seven Eight Nine Ten python programming language is cool

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!