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.

5, ['j', 'Q', '6289', 'K', '8341', '2631', '2421', '7539', 'h', '4761', 'K', '7323', 'i', 'X', 'y', '6981', 'P', '7335', 'h', 'H']
j, Q, 6289, K, 8341, 2631, 2421, 7539, h, 4761, K, 7323, i, X, y

13, ['3869', 'm', '7909', 'y', '983', '1365', '3377', 'V', '4639', '9681', 'D', 'a', 'v', 'W', '2999', 'm', 'A', 'X', '3797', 'x', '3731', '5929', 'g', '1429', '4861', '1739', 'f', '8311']
3869, m, 7909, y, 983, 1365, 3377, V, 4639, 9681, D, a, v, W, 2999

12, ['3111', '1119', '3427', 'V', '2275', 'M', '8023', 'V', '3915', 'k', '899', '4741', 'K', '7109', 'Q', '7537', '5037', 'S', 'w', '6533', '9419', 'N', '9779', 'E', 'Q', 'y', 'N', 'F']

3111, 1119, 3427, V, 2275, M, 8023, V, 3915, k, 899, 4741, K, 7109, Q, 7537