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, ['T', '6773', '8861', 'a', '1169', 'o', 'e', '6279', '3619', 'L', '5099', 'h', 's', 'j', 'N', '2165', '8163', 'W', 'A', 's', '1427', '5869']