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', '9143', 'M', 'f', 'g', 'O', 'w', '1427', '8353', '4259', '2439', '6655', '5929', 'Z', 'W', '4831', '4079', 'x', 'h', 's', '8649', '8389', 'F', 'j', '7483', '4443', 'Q', 'N', '3271']