Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import numpy as np arr = np.array([5, 6, 7, 8]) newarr = np.cumprod(arr) print(newarr)
[ 5 30 210 1680]