title: How would i append two lists already on a txt file?
body: <p>I want to be able to create two lists: Time and data.</p>
  
  <pre><code>import time
  date = [time.strftime("%Y/%m/%d %I:%M%p")]
  data = []
  x = input()
  data.append(x)
  with open("RapData.txt", "a") as output:
      output.write(str(date))
      output.write(str(data))
  </code></pre>
  
  <p>This code makes the two lists and saves it all on one line in the txt file like this if ran twice:</p>
  
  <pre><code>['2017/06/28 02:15PM']['x']['2017/06/28 02:15PM']['x']
  </code></pre>
  
  <p>and i want it to be:</p>
  
  <pre><code>['2017/06/28 02:15PM']['2017/06/28 02:15PM']
  ['x']['x']
  </code></pre>