Sectionย 1. Chapterย 5
single
Challenge: Batch Process Sensor Data
Swipe to show menu
Task
Swipe to start coding
You are tasked with automating a common engineering workflow: calibrating and filtering sensor data. Given a list of sensor readings, you must apply a calibration formula and filter out readings below a threshold.
- For each value in
sensor_readings, apply the calibration formula: multiply the reading bycalibration_factorand add 2. - Include only calibrated readings that are greater than or equal to the
thresholdin the final result. - Return a list containing the calibrated and filtered readings.
Solution
Everything was clear?
Thanks for your feedback!
Sectionย 1. Chapterย 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat