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, ['L', 's', 'V', '7435', '1509', '4197', 'B', '9081', '6639', '399', 'A', '7635', 'F', '6063', '6531', 'T', 'c', '9397', '2273', 'x', 'e', 'z', '3679', '6171', 'J', '9107', '9237', '9723']