Python Print String To Text File,text_file.write('Purchase Amount: {0}'.format(TotalAmount))