FunctionRacerProblemsRace

Pass or Fail

BeginnerNumPyPython

Return a list of strings, one per score in scores: "pass" if the score is 50 or more, otherwise "fail". Hint: np.where.

Example 1

scores [72,49,50]
returns ["pass","fail","pass"]

72 passes, 49 fails, 50 passes.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems