Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PYTHON HELP. WILL GIVE THUMBS UP FOR ANSWER! Consider the following students’ sc

ID: 3708043 • Letter: P

Question

PYTHON HELP. WILL GIVE THUMBS UP FOR ANSWER!

Consider the following students’ scores captured in separate lists (list names are on the left; e.g., students):

students: Carl, Aaron, Kyle

quiz1: 12, 17, 17.5

quiz2: 7, 18, 17

quiz3: 19, 8, 11

1. Create each of the above list

2. In a single command. Create a list of tuples, called grades, showing each student with his/her grade. For example, the first tuple will be (Carl, 12, 20, 19)

3. In a single command, provide the max score for Kyle

4. In a single command, provide the sum score for Carl

Explanation / Answer

# 1 students = ['Carl', 'Aaron', 'Kyle'] quiz1 = [12, 17, 17.5] quiz2 = [7, 18, 17] quiz3 = [19, 8, 11] # 2 grades = [(students[i], quiz1[i], quiz2[i], quiz3[i]) for i in range(len(students))] # 3 max_of_kyle = max([quiz1[2], quiz2[2], quiz3[2]]) # 4 sum_of_kyle = quiz1[0] + quiz2[0] + quiz3[0]