title: Split and strip output python
body: <p>I am really having some issues with getting clean output from python after reading in a file. </p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>user_pass_list = []
  count = 0
  for Line in open(psw):
      fields = Line.strip("\n").strip(",").split(":")
      user_pass_list.append(fields)
      count = count + 1
  
  print (count)
  
  for item in range (0, count):
      print (user_pass_list[item])
  </code></pre>
  
  <p>Here is what I keep getting as output:</p>
  
  <pre><code>['administrator', 'admin']
  ['']
  ['administrator', 'password']
  ['']
  ['admin', '12345']
  ['']
  ['admin', '1234']
  ['']
  ['root', 'root']
  ['']
  ['root', 'password']
  ['']
  ['root', 'toor']
  </code></pre>
  
  <p>Here is the text file that I am trying to read in to a list.</p>
  
  <pre><code>administrator:admin    
  administrator:password    
  admin:12345    
  admin:1234    
  root:root    
  root:password    
  root:toor
  </code></pre>
  
  <p>Could someone please help me? What I want is for each field to have its own list.</p>
  
  <pre><code>users[0]="administrator"
  passwords[0]="admin"
  users[1]="administrator"
  passwords[1]="password"
  </code></pre>
  
  <p>Any suggestions?</p>