Skip to content
C

Problem 2: Filter Data Using Boolean Masking

Easypython

Problem Description

Write a Python program that filters an array of exam scores to show only those above a given passing threshold.

Input

An array of scores and a threshold.

Output

The filtered array of passing scores.

Constraints

  • At least 5 scores.

Example Input

text
scores=[45,78,92,60,88,35], threshold=50

Example Output

text
Passing scores: [78 92 60 88]

Concepts Covered

Boolean masking.

Input (stdin)

Output

Run your code to see output here...