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.
9, ['1227', '8121', 'q', 'p', '7085', 'W', 'y', '6293', 'U', 'V', '625', '7271', 'Z', '8595', 'g', 'h', '6953', 'j', 'v', '807', '5171', '4717', '8997', '4857']