Question: PLEASE SOLVE IN PYTHON Problem 4: File Searching Description. Write a program which opens a user input le name (prompt the user for the le
PLEASE SOLVE IN PYTHON
Problem 4: File Searching Description. Write a program which opens a user input le name (prompt the user for the le name) and searches for the string banana Input. User input le (with words in it). Output. Boolean (True/False) corresponding to if the le contains the string banana Beware. This program should use a try/except clause in the case that the le does not exist, and should print some error such as le not found! oops! Any mixture of uppercase and lower case counts but if the string banana is separated by a new line, numbers, spaces, special characters, etc. the program does not have to return True. If the le is empty, the answer is False (the program does not need to print a special error, just make sure this is handled).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
