Question: Write a shell (text-based) program, called first_word.py, that opens the file stuff.txt and prints out the first word of every line except the first line

Write a shell (text-based) program, called first_word.py, that opens the file stuff.txt and prints out the first word of every line except the first line.

For example, if stuff.txt has the following sentences:

We are hungry. There is an apple. There is an orange. Now we are thirsty. 

Then the following example output would happen.

PS C:\Users\ssiva\Desktop> python first_word.py There There Now PS C:\Users\ssiva\Desktop> 

Submit the file first_word.py when done.

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!