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.
8, ['5463', 'B', 'x', '2807', 'k', '6587', 'J', '6377', 'n', '5413', 'P', '4355', 'u', 'a', 'm', '2205', 'X', '6961', '7993', 'M', '511', '3255', '5651', 'b', '1673']