title: How to write/append 2 columns into a .txt file Using Python?
body: <p>i am new in programing i am working in a small project i am getting problem with this:</p>
  
  <p>I want to append 2 different columns in one .txt file.</p>
  
  <pre><code>def write_file_content(file_name_to_write):
      container=[]
      date=get_current_date()
      time=get_current_time()
      container.append(date)
      container.append(time)
  
    with open(get_EveryDayTrans_folder_path()+file_name_to_write+".txt","a") as edit_file:
          for nm in range(1,11):
              edit_file.write('%s.\n'%nm)
          for item in container:
              edit_file.write('%s\n' %item)
  </code></pre>
  
  <p>with this code i am getting following output :
  1.
  2.
  3.
  4.
  5.
  6.
  7.
  8.
  9.
  10.
  01-29-2019
  10:40 PM</p>
  
  <p>but i want get the output like this:</p>
  
  <ol>
  <li><p>01-29-2019</p></li>
  <li><p>10:40 PM</p></li>
  </ol>
  
  <p>3.</p>
  
  <p>4.</p>
  
  <p>5.</p>
  
  <p>6.</p>
  
  <p>7.</p>
  
  <p>8.</p>
  
  <p>9.</p>
  
  <p>10.</p>