def get_min_max(nums):
    """
    Return a tuple(min, max) out of list of unsorted integers.

    Args:
       nums(list): list of integers containing one or more integers
    """
    if len(nums) == 0: raise ValueError('nums must not be empty')
    if len(nums) == 1: return (nums[0], nums[0])
    min_, max_ = nums[0], nums[0] # initialize
    for num in nums[1:]: # One pass traversal, O(n) in time, O(1) in space
        if num < min_:
            min_ = num
        elif num > max_:
            max_ = num
    return (min_, max_)