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, ['3989', '7711', '7775', '6423', 'u', 'F', '9799', '2797', 'G', '7151', 'q', 't', '1469', '9203', '1443', 'q', 'X', '8261', 'o', 'j', '6367', '741', 'o', '5001', 'O', 'i']