tell() function in Python πThe
tell() function returns the current position of the file pointer within the data stream. It is most often used when working with files. πThe function does not accept any arguments and returns an integer - the position in bytes from the beginning of the stream. π’
with open("file.txt", "rb") as f:
print(f.tell())
