def myrange_using_list(target):
    """ Generate items in range of [0,target-1] and build a list
    """
    num, num_list = 0, []
    while num < target:
        num_list.append(num)
        num += 1
    return num_list