Find the nearest power of 2 for the current frequency
if ( ( value - a ) < ( b - value ) ) : NEW_LINE INDENT temp [ ( int ( a ) ) ] = key NEW_LINE DEDENT else : NEW_LINE INDENT temp [ ( int ( b ) ) ] = key NEW_LINE DEDENT for key , value in temp . items ( ) : NEW_LINE print ( value , " - > " , key ) NEW_LINE