NumPy allowed · plain Python earns 10 bonus points
Implement the dot product from scratch, understand exactly what every multiplication and addition is doing, then connect the operation to the computations inside modern AI systems.
Implement dot_product(a, b) using plain Python or NumPy. Libraries are allowed; a plain-Python solution earns 10 bonus points.
dot_product(a: list[float], b: list[float]) -> float