from numpy import * n = int(input()) b = list(map(int,input().strip().split()))[:n] c=array(b) d=[] for i in range(n): d.append(sum(c[0:i+1])) print(d)
. here showing run time error. but why? any solution?
runtime error
from numpy import * n = int(input()) b = list(map(int,input().strip().split()))[:n] c=array(b) d=[] for i in range(n): d.append(sum(c[0:i+1])) print(d)
. here showing run time error. but why? any solution?