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.
2, ['6665', '3485', 'A', 'f', '1015', '1183', '2921', '9221', 'K', 'U', 'R', '1821', 'W', 'v', 'M', '1017', 'y', 'd', '8579', 'q', 'g', 'R', 'E', 'v', 'Z', 'A', 'i', '9185', '8571']