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.
1, ['N', '7345', 'G', 'Y', 'X', '9817', '9733', '5087', '8759', '3949', '7035', 'q', 'f', '3141', '5343', '1771', '6043', 'B', '8369', 'X', '7269', '5003', '2223']