I want to change the values of a list without using a loop or increase the performence
Below is a part of my code.I want to add (1*2),(2*3) ..to a certain range range of the list.Is there any quicker way to do this other than using for loop
k=1
for j in range(3,100):
ary[j-1]+=k*(k+1)
k+=1