Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) 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 mentioned
Correct answer : Option (A) - tells you the current position within the file

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.

Share

Discusssion

Login to discuss.