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
Get step-by-step solutions from verified subject matter experts
