Question: this is a python3 question every_second_line Complete the following function according to its docstring description. Notes: report is a file open for reading, not a

this is a python3 question

every_second_line

Complete the following function according to its docstring description.

Notes:

report is a file open for reading, not a string representing the name of a file.

the method str.strip() may come in handy!

def every_second_line(report): """ (Open File for reading) -> list of str Return a list containing every second line (with leading and trailing whitespace removed) in report, starting with the first line. """

I really got stuck on this question:( could someone please explain to me? thanks in advance!

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