Questions & AnswersPython Programming

grades = [    # First line is descriptive header. Subsequent...

Question
Answered step-by-step
Asked by wakinbami on coursehero.com

grades = [    # First line is descriptive header. Subsequent...

grades = [
   # First line is descriptive header. Subsequent lines hold data
   ['Student', 'Exam 1', 'Exam 2', 'Exam 3'],
   ['Thorny', '100', '90', '80'],
   ['Mac', '88', '99', '111'],
   ['Farva', '45', '56', '67'],
   ['Rabbit', '59', '61', '67'],
   ['Ursula', '73', '79', '83'],
   ['Foster', '89', '97', '101']
]

 

Exercise 0 (students_test: 1 point). Complete the function get_students which takes a nested list grades as a parameter and returns a new list, students, which holds the names of the students as they from "top to bottom" in the table.
Note: the parameter grades will be similar to the table above in structure, but the data will be different.

 

Expected Output:

['Thorny', 'Mac', 'Farva', 'Rabbit', 'Ursula', 'Foster']

Answer & Explanation

Solved by verified expert
Answered by goyalsaumya4 on coursehero.com
<p>sectetur adipiscing elit. Nam lacinia pulvinar to</p><p>sectetur adipiscing elit. Nam lacinia pulvinar</p><p>sectetur adipiscing elit. Nam lacinia pulvinar tortor</p><p>sectet</p>sectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie co
CliffsNotes Logo

Unlock access to this and over
10,000 step-by-step explanations

Unlock Explanation

Have an account? Log In

Step-by-step explanation

<p>sectetur adipiscing elit.<br/>sectetur<br/>sectetur adipiscing<br/>sectetur adipisci<br/>sectetur</p><p>sectetur adipiscing elit. Nam lacini<br/>sectetur adipiscing elit. Nam laci<br/>sectetur adipiscing elit. Nam laci<br/>sectetur adipiscing elit. Nam laci<br/>sectetur adipiscing elit. N</p>sectetur adipiscing eli

Get unstuck with a CliffsNotes subscription

Example CliffsNotes Question and Answer
Unlock every step-by-step explanation, download literature note PDFs, plus more.Get Access

Related Q&A