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

Project 28: Engagement Score Calculator

Data Engineer

Builds on these lessons

Current Task

Objective

np.dot() computes the matrix product — multiplying a matrix by a weight vector is a common way to compute a single weighted score per row.

Task: compute a weighted engagement score for two pages using np.dot, and print it.

index.py
import numpy as np visits = np.array([[100, 50], [80, 30]]) weights = np.array([0.7, 0.3]) weighted_score = np.dot(visits, weights) print(weighted_score)

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

Live Preview
🖼️

Verify your code to see the preview