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.
14, ['T', 'g', '4791', '8213', '663', '7865', '9799', 'W', '2957', '9493', '2757', 'U', '5971', '4011', '431', '9429', '1151', 'i', '9789', '885', 'Z', 'l', 'c', '7455', 'Z', 'h', '311', '9627', 'd']