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, ['V', '2947', 'L', 'q', 'C', '47', '7215', '5449', '1029', 'a', '8661', '3469', 'r', '5111', '6483', 'c', '5533', '7163', 'l', 'A', '1457', 'q', 'x', 'a']