Skip to content
← Back to the archive

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 100
  • pass_mark is a whole number from 0 to 100

Function signature

def passing_scores(scores, pass_mark):

Sign in to solve this bracket

Reading the problem is free for everyone. Opening the editor and solving it requires an account with Open Bracket+.