🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 17: Search Results Filter

Data Engineer

Builds on these lessons

Current Task

Objective

Indexing an array with a boolean array of the same length keeps only the elements where the mask is True — the core NumPy filtering pattern.

Task: filter a results array down to only the entries flagged True in a boolean mask.

index.py
import numpy as np results = np.array(['SQL Basics', 'Advanced SQL', 'NoSQL Intro', 'SQL Joins']) mask = np.array([True, False, False, True]) print(results[mask])

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview