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.
3, ['S', '6515', '3293', 'z', '6197', '9709', '6401', '3763', 'i', '6675', 's', 'N', 'G', '4353', '3431', 'D', '1577', '9585', '403', '1837', 'e', 'J', '5679']