def min_max_vals(vals):
    """
    :param vals: an iterable such as list
    :return: a tuple in which the first item is the minimum value from the iterable,
    and the second item is the maximum value from the iterable
    """
    sorted_vals = sorted(vals)
    return sorted_vals[0], sorted_vals[-1]