def addHeightsByGraymap(heights, textLines):
 divisor = float(textLines[3])
 for line in textLines[4:]:
  for integerWord in line.split():
   heights.append((float(integerWord) / divisor))

def addHeightsByGraymap ( heights , textLines ) : divisor = float ( textLines [ 3 ] ) for line in textLines [ 4 : ] : for integerWord in line . split ( ) : heights . append ( ( float ( integerWord ) / divisor ) )
add heights by graymap .