Write data to a file in Python,f.write(str(yEst) + '\n')