The standard explanation of integrals as summing the areas of rectangles of decreasing width seems extremely intuitive to me without requiring the baggage of having to know some computer language. Generating functions in code are basically a rote repetition of the mathematical definitions, requiring that you also understand variables and functions and other things unrelated to the core idea.