For my homework assignment, I am using the for loop and the range function. I have to create a loop that prints
Hello 0
Hello 1
Hello 3
Hello 6
Hello 10
The question says that the number corresponds to the accumulated summation over the successive indexes, but I am not really sure how to implement it into my code. I was thinking it was setting the range from 0 to 10 and trying to make a formula, but nothing has come yet. Any help would be appreciated. It has to be in a for i in range function and loop for this assignment.
for i in range(0,10,2):print("Hello",i)