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
Answer» 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.
1.8k
0
Do you find this helpful?
18

Discussion

No comments yet