how to get to the beginning of a file in python code example Example: python file back to beginning file.seek(0)