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.
5, ['r', '1193', '2623', '3319', 'A', 'a', '2623', '4301', 'y', 'x', 'e', 'B', 'U', '4469', 'U', '7873', 'L', 'T', 'N', 'Y', '5193', '6619', '197', '3789', 'V', '1613']