#NEWLINE# def has_valid_checksum( self , number ) : #NEWLINE# #INDENT# '\n        Calculates a checksum with the provided algorithm.\n        ' #NEWLINE# multiple_table = ( 6 , 5 , 7 , 2 , 3 , 4 , 5 , 6 , 7 ) #NEWLINE# result = 0 #NEWLINE# for i in range ( ( len ( number ) - 1 ) ) : #NEWLINE# #INDENT# result += ( int ( number [ i ] ) * multiple_table [ result ] ) #NEWLINE# #UNINDENT# result %= 11 #NEWLINE# if ( result == int ( number [ ( - 1 ) ] ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False