Analyzing exam results

Report a typo

Imagine you work at the admission office of some university, and you need to select successful applications for the next academic year.

All candidates took entry exams in Maths, Physics, and English. Results are stored in the lists scores_maths, scores_physics and scores_english respectively.

To enter the university, a student must get at least 270 points in total.

How many students will be admitted?

First, compute the overall score for each student. Then, filter out those who didn't get enough points and print the length of the remaining list.
Write a program in Python 3
scores_maths = [100, 75, 90, 95, 60, 50, 95, 85, 70, 75,
90, 85, 60, 45, 100, 70, 65, 50, 55, 95,
50, 45, 35, 100, 95, 90, 85, 90, 80, 85,
95, 45, 60, 45, 80, 70, 55, 45, 60, 90]

scores_physics = [50, 65, 85, 100, 60, 55, 90, 85, 70, 90,
50, 40, 100, 45, 95, 70, 75, 60, 50, 100,
60, 90, 40, 90, 95, 90, 80, 95, 85, 80,
95, 90, 75, 50, 80, 70, 50, 35, 65, 90]

scores_english = [50, 40, 100, 45, 95, 70, 75, 60, 50, 100,
50, 45, 35, 100, 95, 90, 85, 90, 80, 85,
90, 85, 60, 45, 100, 70, 65, 50, 55, 95,
50, 65, 85, 100, 60, 55, 90, 85, 70, 90]

overall_scores = list(...)

admitted_students = list(...)

print(len(admitted_students))
___

Create a free account to access the full topic