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.
12, ['l', 'i', '21', 'x', 'i', 'G', 'o', 'w', '5003', '6999', '4613', '4335', '6643', 'S', '8635', 'D', 'y', 'q', '3537', '9561', '303', '5149', '1265', '7319', 'u', 'g', '1887']