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.
3, ['W', '9291', 'e', '3639', 'z', '7273', 'v', '9943', '4271', 'p', '5125', 'l', 'e', '7409', 'P', 'a', 'H', '5331', '8519', 'L', '8273', '7733', 'x', 'x', '87', 'X', '1217', 'O']