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.
3, ['Y', '3449', '9989', '1833', 'Y', '3405', 't', '8647', 'j', 'h', '3109', '6899', 'S', '4763', '4579', '4365', '5461', '7881', '5223', '6357', '9561', 'm', 'q']