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.
4, ['6541', '1469', '9329', 'H', '9547', '7503', 'S', 'j', 'f', 'q', 'l', '7817', '6117', '7247', 'm', 'q', 'S', 'L', '6073', '8835', 'r', '6501', '4083']