import logging logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - %(message)s') logging.disable(logging.CRITICAL) def quickselect(items, kth, left=None, right=None): # By default, `left` and `right` span the entire range of `items`. if left is None: left = 0 if right is None: right = len(items) - 1 # `right` defaults to the last index in items. if (len(items) == 0) or (not (0