Definition: 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.
Input: 18, 24, ['D', '1895', '7001', 'q', 'U', 'Y', '7763', '6517', 'z', '3249', '461', 'l', '777', '9811', 'S', '5929', 'J', '9237', '739', 'P', '5733', 'v', '1211', 'a', 'O', 'I']

9237, 739, P, 5733, v, 1211, a