#NEWLINE# def histogrammer( file , label ) : #NEWLINE# #INDENT# IN = open ( file ) #NEWLINE# histogram = dict ( ( ( i , 0 ) for i in range ( 0 , 102 ) ) ) #NEWLINE# for line in IN : #NEWLINE# #INDENT# if ( line [ 0 ] == '>' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# histogram [ len ( line [ : ( - 1 ) ] ) ] += 1 #NEWLINE# #UNINDENT# #UNINDENT# IN . close ( ) #NEWLINE# result_table = [ ] #NEWLINE# for k in sorted ( histogram ) : #NEWLINE# #INDENT# result_table . append ( ( '%i\t%i\t%s' % ( k , histogram [ k ] , IN ) ) ) #NEWLINE# #UNINDENT# return result_table