which of the following statements correctly explain the function of tell() method?
a. tells the current position within the file
b. indicates that the nest read or write will occur at that many bytes from the beginning of the file.
c. move the current file position to a different location
d. it changes the file position only if allowed to do so else returns an error
Answers
Answered by
4
Answer:
a.........................
Answered by
0
Answer : option a
The explanation
a. indicates the current position in the file the current position of the file object is returned by the tell() method.
b. a particular number of bytes from the files are returned using the python file read() method. particular text is written to the file using the write() method.
c. to move the file location from one location to another using move().
d. the seek() method is used to change the position of the file.
Conclusion
So the answer is an option, a tell() method is used to find the current position within the file.
#SPJ3
Similar questions
Accountancy,
2 months ago
Computer Science,
2 months ago
Biology,
2 months ago
Science,
5 months ago
Physics,
9 months ago
Hindi,
9 months ago