1.

What is the use of tell() method in python?(a) tells you the current position within the file(b) tells you the end position within the file(c) tells you the file is opened or not(d) none of the mentionedThis question was posed to me in unit test.This question is from Files in division Regular Expressions and Files of Python

Answer»

The correct CHOICE is (a) tells you the current position within the file

Easy EXPLANATION - The TELL() method tells you the current position within the file; in other WORDS, the next read or write will occur at that many bytes from the BEGINNING of the file.



Discussion

No Comment Found

Related InterviewSolutions