Question: In this question, you will be shown three functions, and you will have to choose which one correctly accomplishes the task described below. For the
In this question, you will be shown three functions, and you will have to choose which one correctly accomplishes the task described below. For the other two wrong answers, you should provide a 1-3 sentence description explaining why it would not work correctly. A function named count_lines that should have two parameters. You can expect the first will be a file name (string) and the second will be a term to search for (also a string). The function should count how many lines from the file contain the search term. It should return the count. Option A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
