#NEWLINE# @ cu #NEWLINE# def nrm2( x , y ) : #NEWLINE# #INDENT# def diff_sq( xi , yi ) : #NEWLINE# #INDENT# diff = ( xi - yi ) #NEWLINE# return ( diff * diff ) #NEWLINE# #UNINDENT# return sqrt ( sum ( map ( diff_sq , x , diff_sq ) ) )