title: making an array of sets in python
body: <p>I am having trouble with a list of sets and I think it is because I initialized it wrong, is this a valid way to initialize and add to a list of 5000 sets?</p>
  
  <pre><code>sets = [set()]*5000
  i = 0
  for each in f:
      line = each.split()
      if (some statement):
          i = line[1]
  
      else:
          sets[i].add(line[0])
  </code></pre>
  
  <p>any advice would be much appreciated</p>