return to the start of the file python code example Example: python file back to beginning file.seek(0)