title: How do I convert string to integer in python?
body: <p>I have a python program for sorting out class scores. My Class1 text file looks like this:</p>
  
  <blockquote>
    <p>Elizabeth, 2, 7, 3</p>
    
    <p>Anna, 9, 6, 4</p>
    
    <p>Jenny, 8, 1, 5</p>
    
    <p>Victoria, 1, 4, 7</p>
  </blockquote>
  
  <p>This is my code so far:</p>
  
  <pre><code>file=open("Class1.txt","r")
  
  studentscores= []
  
  for row in file:
  
      studentscores.append(row.strip())
  
  studentscores2=[]
  
  for item in studentscores:
  
      studentscores2.append(item.split(","))
  </code></pre>
  
  <p>I'm struggling how to how to convert the string into integers so that I can sort the numbers?
  I would appreciate some help.</p>