title: Data Organizing in Python 3.4 3
body: <p>In Python I am using this file Criteria.txt and it looks like this</p>
  
  <pre><code>Homework,5,10,10
  
  Quiz,3,20,20
  
  Midterm,1,50,30
  
  Final,1,100,40
  </code></pre>
  
  <p>I typed in this code to open and manipulate the Criteria.txt file</p>
  
  <pre><code>criteria=open('Criteria.txt','r')
  criteria_line=criteria.readline()
  
  
  
  for criteria_line in criteria:
        print (criteria_line),
        criteria_myline = criteria_line.strip().split(',')
        print ("Assignment Type: "+criteria_myline[0])
        print ("Number: "+ criteria_myline [1])
        print ("Points: "+ criteria_myline [2])
        print ("Weight: "+ criteria_myline [3])
        print ()
  </code></pre>
  
  <p>The result was this</p>
  
  <pre><code>(None,)
  
  Assignment Type: Quiz
  
  Number: 3
  
  Points: 20
  
  Weight: 20
  
  Midterm,1,50,30
  
  (None,)
  
  Assignment Type: Midterm
  
  Number: 1
  
  Points: 50
  
  Weight: 30
  
  Final,1,100,40
  
  (None,)
  
  Assignment Type: Final
  
  Number: 1
  
  Points: 100
  
  Weight: 40
  </code></pre>
  
  <p>This was all correct except Homework didn't show up. You can see in the <code>Criteria.txt</code> file that Homework was the first assignment type in the list. What is wrong with this code? Why did it leave Homework out? </p>