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.
2, ['L', '2719', '879', 'c', '7843', '4347', '8865', '9317', 'J', 'k', '8861', 'V', '6793', 'R', '3673', 'g', '9803', '6653', '1361', '7609', '9103', 'r', 't', '9239', '7223', '3007']