@shana Regular reminder to self that all those scary for-loops are just iterated operators 😜
@shana not really for loops. In math a sum can and often does go up to infinity, whereas a for loop cannot do that.
As an analogy to convey some information is fine, I'm just reminding that it ain't the same thing.
@nyx Super nitpickity, if you don't have a stop condition, a for-loop will happily go on until the death of the universe (or your pc, whichever comes first)
But in general, the sigma is the abstract definition, the for-loop is a possible concrete implementation of that definition, in a language that the target of this PSA (non mathy programmers) can understand and go "oooh ok I get it now". It would have saved me like half a semester if someone had shown me this up front, no other words needed.
"Lies to children" is an pedant repellant pedagogy.
I reckon the world a better place if more folk understood a touch pedagogy on top of their regular expertise: