Summation for a Python function

Im not worried about the coding part right now I feel I can handle that, my main issue is trying to understand how the values in the summation are derived. It seems simple enough, but I cant seem to grasp how they got the 10 values in the example there. Once I understand the summation, the coding should be easy. I just need a bit of guidance in how it all's working.