#NEWLINE# def get_height( self , matrix , row , col ) : #NEWLINE# #INDENT# height = 0 #NEWLINE# for i in xrange ( row , ( - 1 ) , ( - 1 ) ) : #NEWLINE# #INDENT# if ( matrix [ row ] [ col ] == '0' ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# height += 1 #NEWLINE# #UNINDENT# return i