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

Project 15: Response Time Interpolator

Scientific Computing

Builds on these lessons

Current Task

Objective

interp1d() builds a function that estimates values between known data points — filling in gaps your raw data doesn't cover.

Task: interpolate response time at 13.5 hours from known hourly data points and print it.

index.py
from scipy.interpolate import interp1d import numpy as np hours = np.array([9, 12, 15, 18]) response_time = np.array([2, 5, 4, 8]) f = interp1d(hours, response_time) print(f(13.5))

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

Live Preview
🖼️

Verify your code to see the preview