In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to list all elements of A from the ith element to the jth element. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j.

1, 4, ['D', '4795', 'K', 'p']
D, 4795, K, p

1, 4, ['S', '1765', 'A', '6029', 'Y']
S, 1765, A, 6029

1, 5, ['f', 'l', 'z', 'J', 'K', 'P', '4595']

f, l, z, J, K