#NEWLINE# def has_valid_checksum( self , number ) : #NEWLINE# #INDENT# '\n        Calculates a checksum with the provided algorithm.\n        ' #NEWLINE# multiple_table = ( 1 , 3 , 7 , 9 , 1 , 3 , 7 , 9 , 1 , 3 , 1 ) #NEWLINE# result = 0 #NEWLINE# for i in range ( len ( number ) ) : #NEWLINE# #INDENT# result += ( int ( number [ i ] ) * multiple_table [ i ] ) #NEWLINE# #UNINDENT# return ( ( result % 10 ) == 0 )