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.
10, ['j', 'P', '6933', 'x', 'B', 'y', '5827', 'l', '3153', 'c', 'b', 'y', 'R', 'V', '3267', '6895', '8911', 'h', '2741', '8417', '9187', 'Y']