Question: 1)Write a program to read all the txt files and save the sentences in all the files into one CSV file with two columns, the
1)Write a program to read all the txt files and save the sentences in all the files into one CSV file with two columns, the first column is sentence id (txt file name+sentence line number), the second column is the sentence text content.
2)Remove all the punctuations from the sentences, save the processed sentences into a new column in the same CSV file
3)Ask the user to enter a word, return all the sentences that include this word, three kinds of information should be returned: sentence id, sentence text content, the count that user input word appears in the sentence.
please answer all the questions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
