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.
9, ['P', '121', 'V', '8807', 'A', '4041', 'd', 'Y', 'B', '5209', '2619', '3155', '1399', 'W', 'r', '6005', 'q', '1765', '9979', '8255', '55', '4659', 'K', 'D', '9865', '4785', '6633', 's']