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.
15, ['M', 'k', 'd', '5379', 'G', 'r', 'c', '9433', '6357', '2503', 's', '3939', '1059', '4889', 'l', '595', 's', 'G', 'l', 'Y', '6559', '4987', 'i', '6541', 'T', '2431', 'S', '8545', 'X', '9135']