Seeking in files PREMIUM

Series: Files
Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
5 minute read Python 3.7—3.10
Python Morsels
Watch as video

What does it mean to seek in a file?

Python keeps track of your file position

Here we have a text file called my_file.txt:


Write more Pythonic code

Need to fill-in gaps in your Python skills? I send regular emails designed to do just that.