Detailed Instructions: In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.
Q: 5, ['6311', '5105', 'r', '1797', '8393', 'r', '793', 'd', 'd', '5715', '1607', 'g', '2807', '9575', 'w', '385']
A:
6311, 5105, r, 1797, 8393, r, 793, d, d, 5715, 1607