Hi guys, I am having some trouble figuring out how to do the accumulation, can anyone help me out? Thanks

+3 votes

1) I think you mean **Routine Practice 3**, since RP4 hasn't been assigned yet!

2) This one is *very similar* to the example we did at the end of class, involving adding up the ODD squares, but in this case you want to add up ALL the squares. So, take a look at the `range(...)`

function we used in class in order to get the odd numbers (1, 3, 5, ...), and think about how to change it so that you can get all the numbers starting at 1 (1, 2, 3, 4, ...)