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.
12, ['P', 'Y', 'R', 'R', '199', '9105', '1013', '7815', '1309', '31', 'Y', '5093', '3315', 't', 'T', '4967', 'y', 'v', '2817', '9215', '1839', 'a', '59', '6375', 'J', '1871', 'o']