title: How do I put students names from a CSV file into a List when printing
body: <p>When printing I am trying to make it so I can put the Student Names and Details from a CSV with their calculated UCAS score into a new CSV file but I am having trouble printing this out.</p>
  <p>For example I am trying to turn this:</p>
  <ul>
  <li>Jonah Whale 63.96900000000001 ['Forename: ','Surname: ','Ucas Points:
  ']</li>
  <li>Into this:  ['Forename: Jonah ','Surname: Whale ','Ucas
  Points:63.96900000000001 ']</li>
  </ul>
  <p>How would I get the information to sit inside of the Forename, Surname and Ucas Points instead of printing it underneath.</p>
  <p>An example from the Grades .csv file:</p>
  <p>Forename,Surname, Grades</p>
  <p>Bill,Smith,P,P,P,M,P,D,D,P,M,P</p>
  <pre><code>
  
  with open('Grades.csv', 'r') as f:
      data = f.readlines()
  
      with open('Results.csv', 'w') as f:
          fieldnames = ['Forename', 'Surname', 'Ucas Points']
          csv_writer = csv.writer(f)
  
  information = ['Forename: ','Surname: ','Ucas Points: ']
  
  students = []
  
  for studentLine in data[1::]:
      students.append(studentLine.replace(&quot;\n&quot;, &quot;&quot;).split(&quot;,&quot;))
  
  for student in students:
      line_count = 0
      ucas = 0
      for index in student[4::]:
          if line_count == 7:
              if index == &quot;P&quot;:
                  ucas += 9 * 1.066
              elif index == &quot;M&quot;:
                  ucas += 9 * 2.133
              else:
                  ucas += 9 * 3.2
  
          else:
              if index == &quot;P&quot;:
                  ucas += 6 * 1.066
              elif index == &quot;M&quot;:
                  ucas += 6 * 2.133
              else:
                  ucas += 6 * 3.2
          line_count += 1
  
      print(student[0] + &quot; &quot; + student[1] + &quot; &quot; + str(ucas))
      print(information)
  </code></pre>