Question: highlight: This function takes two string arguments. The rst is a filename and the second is a keyword to be searched for in the file.

 highlight: This function takes two string arguments. The rst is a

highlight: This function takes two string arguments. The rst is a filename and the second is a keyword to be searched for in the file. Whenever a line is found that contains the keyword, print the line number followed by a colon leftjustied in a field of width 5, followed by the line with every occurrence of the keyword bracketed by ' ->' on the left and '

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 Programming Questions!