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, ['j', 'I', '8499', '2003', 'u', '7153', 'q', 'P', 'v', '205', '43', '5567', 'a', 'S', '7811', 'o', '1415', '7323', 'I', 'o', '1949']