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.
6, ['Z', 'R', '291', 'J', '4017', 'z', 'u', 'f', '6413', '6201', 'W', 'v', '5585', 'N', '4975', 't', 'c', '5555', 'T', '6861', '2037', '8041', '9621', '7205', '7131']