Basically, I can't find a solution/syntax for the following problem: I want to loop/iterate through a list like this:
my_list = list(range(0,11)
for x in my_list:
my_sum = sum(my_list[0:2]) # Sum is only an example, I actually want to do something else but that's not part of the question
# Now move on to my_list[1] and do the sum of my_list[1] and my_sum and so on iteratively
I hope it's understandable what I want to do, I don't think I can explain it much better. I think it can be solved with a relatively easy while or for loop but I can't get the hang of it.
Basically, the characters influence the next one and so on