l = [1, 3, 9, 8, 7]


def slice(l, i, k):
    list1 = []
    for i in range(i, k):
        list1.append(l[i])
    print(list1)


slice(l, 1, 3)

f9c0bc07955ef9c0fda56610221ecd8e5a4df145
<mask token>

<mask token>


def slice(l, i, k):
    list1 = []
    for i in range(i, k):
        list1.append(l[i])
    print(list1)


<mask token>

<mask token>


def slice(l, i, k):
    list1 = []
    for i in range(i, k):
        list1.append(l[i])
    print(list1)


slice(l, 1, 3)

l = [1, 3, 9, 8, 7]


def slice(l, i, k):
    list1 = []
    for i in range(i, k):
        list1.append(l[i])
    print(list1)


slice(l, 1, 3)
