Get your own website Result Size: 625 x 565
x
 
import numpy as np
arr = np.array([5, 6, 7, 8])
newarr = np.cumprod(arr)
print(newarr)
[   5   30  210 1680]