PRACTICE

Mini Project: Grade Report

Lesson notes

Your task

Given scores = [70, 85, 90, 55], print the average (75.0) then the number of passing scores (3). A pass is at least 60.

Expected output
75.0
3
Loading…

OUTPUT

Worked solution
scores = [70, 85, 90, 55]
print(sum(scores) / len(scores))
print(len([s for s in scores if s >= 60]))

Checks compare printed output, not your approach. Several solutions can be valid.

← Back to courses