How does readline() know where each line is?... View this post on Instagram How does readline() know where each line is?➡ ▪ Inside readline() is code that scans each bytes of the file until it finds a \n character, then stops reading the file to return what it found so far. ▪ The file f is responsible for maintaining the current position in the file after each readline() call, so that it will keep reading each line. 🔴 Follow DDSRY ➡ @ddsry21 To Learn Python Programming Language. 🙏Thank You💻 DDSRY . A post shared by Python Programming By - DDSRY (@ddsry21) on Sep 14, 2020 at 7:11pm PDT