python print string to text file,text_file.write('Purchase Amount: {0}'.format(TotalAmount))