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, ['687', '8957', '9003', '9701', 'K', '9929', '6287', 'r', 'd', '8885', '1275', '3815', 'i', 'W', 'K', '9301', '2777', '5839', 's', '2333', '1057', 'a']
687, 8957, 9003, 9701, K, 9929, 6287, r, d, 8885, 1275, 3815, i, W, K, 9301, 2777, 5839, s, 2333

1, ['O', 'w', 'F', '6965', 'J', 'l', '205', 'N', '3153', 'b', '2955', '3409', 'X', 'E', 'n', 'm', '2955', 'V', '769']
O, w, F, 6965, J, l, 205, N, 3153, b, 2955, 3409, X, E, n, m, 2955, V

11, ['I', '8109', '3115', 'J', 'T', 'n', 'A', '707', 'M', 'U', '3377', '481', '1407', '9999', '6343', '1945', 'H', 'P', 'Y', 'i', 'K', '7157', 'C', '8445', 'n', 'd', '6401']

I, 8109, 3115, J, T, n, A, 707, M, U, 3377, 481, 1407, 9999, 6343, 1945