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.
8, ['3031', 'g', 'l', 'a', '1869', '3843', 'P', 'Z', 'K', '199', 'p', 'X', 'H', '6475', '2631', '9797', '1121', 'M', 'g', 'd', '8095', 'B', '9825', '1907', 'x', 'T', '8863', '6887']