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.
6, ['J', '747', '8749', 'A', '1999', '9285', '5289', '4419', '3213', 'O', '6509', 'D', '7917', 'u', 'L', '4773', 'W', 'o', '581', 'V', 'R', '1501', '2787', '9365', 'Q', '8189']