Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a function find items in_file The function will have 2 parameters, a file_

ID: 3719316 • Letter: W

Question

Write a function find items in_file The function will have 2 parameters, a file_name, and an integer number The file contains an item and number of item separated by bar''in each line. e-8 Question 9 Not answered Mark 0.00 out of 30.00 pen 5 phone 10 book 3 Flag question The function should return a list of all the items in the file which have the number as the parameter passed The function should return a -1 if the file can't be opened Hint e Use try-except for exception handling The second parameter is of integer type There might be empty lines in the file, or the item might have leading and trailing spaces You should first parse the file and split each line and store it. Answer: (penalty regime: 0%)

Explanation / Answer

**Comment for any further queries.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote