1.

Which function is used to read all the characters?(a) Read()(b) Readcharacters()(c) Readall()(d) Readchar()I had been asked this question in class test.My question is based upon Files topic in division Regular Expressions and Files of Python

Answer»

Correct CHOICE is (a) READ()

The best I can explain: The read function READS all characters fh = OPEN(“FILENAME”, “r”)

content = fh.read().



Discussion

No Comment Found

Related InterviewSolutions