title: output items in a list using curly braces
body: <p>I have a text file with 'n' lines. I want to extract first word, second word, third word, ... of each line into a list1, list2, list3,...</p>
  
  <p>Suppose input txt file contains:</p>
  
  <pre><code>a1#a2#a3
  b1#b2#b3#b4
  c1#c2
  </code></pre>
  
  <p>After reading the file, Output should be:</p>
  
  <pre><code>List1: {a1,b1,c1}
  List2: {a2,b2,c2}
  List3: {a3,b3}
  List4: {b4}
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>f = open('path','r')
  for line in f:
      List=line.split('#')
      List1 = List[0]
      print '{0},'.format(List1),
      List2 = List[1]
      print '{0},'.format(List2),
      List3 = List[2]
      print '{0},'.format(List3),
      List4 = List[3]
      print '{0},'.format(List4),
  </code></pre>
  
  <p><strong>OUTPUT</strong></p>
  
  <pre><code>a1,b1,c1,a2,b2,c2,a3,b3,b4
  </code></pre>