In this lesson, students learn how to write to existing files. They will explore two modes: “w” for overwriting a file and “a” for appending to a file.
Students will be able to:
In this lesson, students learn how to manipulate the file pointer position using the seek()
and tell()
methods in Python. They will explore how seek()
can be used to move the pointer to a specific location within a file, enabling operations at desired positions.
Students will be able to:
tell()
method to return the location of the file pointerseek()
method to move the file pointer to a specific position within a fileIn this lesson, students review content with a 10 question End-of-Unit Quiz.
Students will be able to:
write
to create new files and append information to already existing filestell
to return file pointer positionseek
to move the file pointer to a new position