def range_(numList, printed=False):
    """Find the range of a set of numbers."""
    numList = sorted(numList)
    # The range equals the biggest number minus the smallest number.
    try:
        range_ = numList[-1] - numList[0]
    except IndexError:
        range_ = 0
        
    if printed:
        print(range_)
    else:
        return range_