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.
8, ['w', '4327', 'p', '4583', 'R', 'c', '2339', '8847', 'l', 'U', '3055', 'M', '2931', '7671', '3509', 'u', '9099', 's', 'L', 'D', '6717', 'q', 'C', 'p', '4915', '1969', '6319', '6689', '5563', '1417']