Code should be self-documenting. That way it is never outdated. Here’s an example of this similar to what you can expect to see in practice:
def nabla_descent(X, y, theta, alpha, delta, nabla):
m = len(y)
for _ in range(delta):
h = X.dot(theta)
nabla = (1/m) * X.T.dot(h - y)
theta = theta - alpha * nabla
return theta
I remember my 4th grade teacher having us read one page about the Daughters of the Confederacy, the teacher briefly discussing the struggles of former slave-owners, and skipping the rest of the chapter on slavery due to “not having enough time.” IIRC, even the textbook painted the Daughters of the Confederacy in a positive, or at least neutral light.
I remember my 7th grade health teacher showing us a Christian anti-masturbation video for our sex-ed requirement. This was a rural public school in a northern state. Only other option was a private Catholic school, but my family wasn’t Catholic, and my family wouldn’t have been able to afford to send me there if they wanted to.
I don’t think I even knew about the trail of tears until the middle of high school; and definitely didn’t learn about the motivation for hunting Buffalo to extinction.