#NEWLINE# def np_ndindex( x , y ) : #NEWLINE# #INDENT# s = 0 #NEWLINE# n = 0 #NEWLINE# for ( i , j ) in np . ndindex ( x , y ) : #NEWLINE# #INDENT# s = ( s + ( ( i + 1 ) * ( j + 1 ) ) ) #NEWLINE# #UNINDENT# return s