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.

7, ['N', 'y', '1729', 'l', '739', 'V', '6443', '6063', 'M', '153', 'Z', '1741', '167', 'K', 'Z', '1427', '1775', 'A', '969', 'a', '2945']
N, y, 1729, l, 739, V, 6443, 6063, M, 153, Z, 1741, 167, K

6, ['7151', 'S', '4193', '6261', 'H', '4623', '1455', 't', '1421', 'e', '4227', '4719', 'g', 'V', 'Z', 't', 'z', '5603', '5745']
7151, S, 4193, 6261, H, 4623, 1455, t, 1421, e, 4227, 4719, g

3, ['Z', '5583', 'X', 'E', 'C', 'd', '1853', 'y', '763', '6783', '2379', '6153', '365', '3121', '9209', '2297', '4923', '7715', '767', '6819', '5495', 'W', '4157']

Z, 5583, X, E, C, d, 1853, y, 763, 6783, 2379, 6153, 365, 3121, 9209, 2297, 4923, 7715, 767, 6819