24 August 2026
Passing Scores
Easy
Lists
Return every score that meets the pass mark.
Given a list of test scores and a pass mark, look at each score in order. Add a score to a new list when it is at least the pass mark. Return the new list in the same order. If no score passes, return an empty list.
Constraints
scores contains whole numbers from 0 to 100pass_mark is a whole number from 0 to 100
Function signature
def passing_scores(scores, pass_mark):