title: Save the elements of two lists in columns in a file
body: <p>I should save in a file the elements of two lists in this way: elements of the list timestamp beside the elements of the list ID. The following code puts the elements of the second list in the same column of the elements of the first list. Is there a way to correct the code? </p>
  
  <pre><code>    class Videocamera(object):
          timestamp = []
          ID = []
          error = []
          def __init__(self, num_id):
              self.num_id = num_id
      file = open("Rilevazioni videocamera 1.txt", "w")
      V1 = Videocamera("VC00")
      V1.timestamp = [n for n in range(100)]
      for n in V1.timestamp:
          file.write(str(n))
          file.write("\n")
      for n in range(10):
          V1.ID.append(0)
      for n in range(10):
          V1.ID.append(1)
      for n in range(10):
          V1.ID.append("Pe0000")
      for n in range(10):
          V1.ID.append("Pe0001")
      for n in range(10):
          V1.ID.append(1)
      for n in range(10):
          V1.ID.append("Pe0002")
      for n in range(10):
          V1.ID.append(1)
      for n in range(10):
          V1.ID.append(0)
      for n in range(10):
          V1.ID.append("Pe0001")
      for n in range(10):
          V1.ID.append("Pe0000")
      for n in V1.ID:
          if n != 1:
              V1.error.append(False)
          else:
              V1.error.append(True)
      for n in V1.ID:
          file.write(str(n))
          file.write("\n")
  </code></pre>