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, 2, ['m', '9841', 'p', 's']
m, 9841

5, 6, ['O', 'F', 'x', '7959', '5027', '4231', 'z', '2977', 'N']
5027, 4231

7, 9, ['X', '2003', '647', '8735', 'c', '721', '8433', 'w', '93', '2997', 'Z', '2181']

8433, w, 93