title: How to create multiple (but individual) empty lists in Python?
body: <p>I wrote a script that at one point generates a bunch of empty lists applying a code with the structure:</p>
  
  <pre><code>A,B,C,D=[],[],[],[]
  </code></pre>
  
  <p>which produces the output:</p>
  
  <pre><code>A=[]
  B=[]
  C=[]
  D=[]
  </code></pre>
  
  <p>The way it is right now, I have to manually modify the letters each time I use a different dataset as an input. I want to be able to automatize that.
  I thought about doing this:</p>
  
  <pre><code>FieldList=[A,B,C,D]
  bracket=[]
  [[0]for field in FieldList]
  for field in FieldList:
      bracket=bracket+["[]"]
  FieldList=bracket                  
  </code></pre>
  
  <p>Here I was trying to replicate " A,B,C,D=[],[],[],[]", but evidently that's not how it works.</p>
  
  <p>I also tried:</p>
  
  <pre><code>FieldList=[A,B,C,D]
  bracket=[]
  [[0]for field in FieldList]
  for field in FieldList:
      field=[]
  </code></pre>
  
  <p>But at the end it just produces a single list call "field".</p>
  
  #
  
  <p>So, this is what I need the lists for. I will be reading information from a csv and adding the data I'm extracting from each row to the lists. If generate a "list of lists", can I still call each of them individually to append stuff to them?</p>
  
  <pre><code>A,B,C,D=[],[],[],[]
  with open(csvPath+TheFile, 'rb') as csvfile:    #Open the csv table
      r = csv.reader(csvfile, delimiter=';')      #Create an iterator with all the rows of the csv file, indicating the delimiter between columns
      for i,row in enumerate(r):                  #For each row in the csv
          if i &gt; 0:                               #Skip header 
              A.append(float(row[0]))             #Extract the information and append it to each corresponding list
              B.append(float(row[1]))
              C.append(format(row[2]))
              D.append(format(row[3]))
  </code></pre>