title: My for loop in python is giving me back 2 loops instead of one
body: <p>So I have a function thats this:</p>
  
  <pre><code>def get_hour_from_line(line_string):
  # This function takes the line as a string for input and
  # returns the hour as an integer
  
  infile = open(line_string,"r")
  
  data = infile.read()
  
  new_lst = data.split(",")
  
  
  for i in new_lst:
      data = i.split()
  
  
  
      print(data)
  </code></pre>
  
  <p>The output I get is:</p>
  
  <pre><code>['NULL', '9/12/14', '22:50']
  ['6763'] #continues down for a long time
  </code></pre>
  
  <p>I need to assign a variable, hours, to the 2nd item in the first list. However if I index [-1] or [2:3] I still end up with the [
  '6763'] or a []. Is there a way to delete that second list or iterate over it??</p>