

InterviewSolution
Saved Bookmarks
1. |
To read two characters from a file object infile, we use ____________(a) infile.read(2)(b) infile.read()(c) infile.readline()(d) infile.readlines()The question was asked by my college director while I was bunking the class.Question is taken from Files topic in chapter Regular Expressions and Files of Python |
Answer» RIGHT ANSWER is (a) infile.read(2) Explanation: Execute in the SHELL to verify. |
|