1.

To read the remaining lines of the file from a file object infile, we use ____________(a) infile.read(2)(b) infile.read()(c) infile.readline()(d) infile.readlines()The question was asked in quiz.I'd like to ask this question from Files in chapter Regular Expressions and Files of Python

Answer»

The CORRECT OPTION is (d) infile.readlines()

To explain: Execute in the SHELL to verify.



Discussion

No Comment Found

Related InterviewSolutions