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.
4, ['J', 'v', 'q', '2657', '4727', '821', '7093', 'F', '9627', 'm', '2939', '8541', 'h', '7319', '831', '2507', 'H', '9985', '4263', '5359', '625', '431', '2759', 'A', 'o', 'I', '1393', '2573']