#NEWLINE# def array_view_iter( arr , idx ) : #NEWLINE# #INDENT# total = 0 #NEWLINE# for ( i , v ) in enumerate ( arr [ idx ] ) : #NEWLINE# #INDENT# total += ( i * v ) #NEWLINE# #UNINDENT# return total