def shift(list, num):
    """
    this function shifts the position of an existing list or string and returns it as a new list
    """
    list = [x for x in list]
    for i in range(num):
        first = list[0]
        list.pop(0)
        list.append(first)

    return list