1.

The readlines() method returns ____________(a) str(b) a list of lines(c) a list of single characters(d) a list of integersI had been asked this question in a job interview.My question is based upon Files topic in section Regular Expressions and Files of Python

Answer»

Correct answer is (B) a list of lines

To EXPLAIN: EVERY LINE is stored in a list and returned.



Discussion

No Comment Found

Related InterviewSolutions