''' Purpose: implements the di.py problem on test 2 ''' def ction( x ) : pass if ( __name__ == "__main__" ) : x1 = ['m', 'i', 'm', 'i', 'c'] x2 = [3, 1, 2, 2, 1, 2] x3 = [True, False, True, True] tests =[ x1, x2, x3 ] for i in range( 0, 3 ) : x = tests[ i ] d = ction( x ) print( 'ction( x' + str( i+1 ), '):', d )