Question: Apply what you've learned from this lab to answer this question. You are tasked with enhancing the find _ error.py script to also search for

Apply what you've learned from this lab to answer this question. You are tasked with enhancing the
find_error.py script to also search for warning messages in addition to errors in the fishy.log file. How
would you modify the script to accomplish this?
Modify the error_patterns list initialization to include both "error" and "WARN" as base patterns.
Replace the error patterns list with a new list containing only "WARN" patterns.
Create a separate script specifically for searching warning messages in the log file.
Add a new input prompt to the script for the user to specify if they want to search for "WARN" messages.
Apply what you've learned from this lab to answer

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!