def addHeightsByBitmap(heights, textLines):
 for line in textLines[3:]:
  for integerWord in line.split():
   heights.append(float(integerWord))

def addHeightsByBitmap ( heights , textLines ) : for line in textLines [ 3 : ] : for integerWord in line . split ( ) : heights . append ( float ( integerWord ) )
add heights by bitmap .