Hi im a totally Python beginner , and my english is really bad so i hope you can actually understand my question.

So im trying to make a loop “n” number of times. So im using a slider which goes in the code block 0…n; so this is my IN[0] for my python formula. I have also a IN [1] which is a constant in the hole process.

I actually want that every z= IN [1] + the result of “y” in every cicle

so for the first cycle there is actually no y so it would be z= IN [1]

for the second cycle it would be z=IN [1]+y0

for the third one it would be z= IN[1] +y0+y1

for the fourth cycle" it would be z= IN[1] +y0+y1+y2

and so on until “yn”

But i actually don´t how is the correct way to write these in python…i would say the rest of my formula (look the screenshot) works…the problem is just that part in blue!

Any Help? Thanks