Learn Python Coding
Photo
click to show
click to show
The 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())
#Python #Programming #Coding #FileHandling #DevTips #Tech
✨ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
2 · 1.2K ·