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.
9, ['71', '3473', 'w', 'Z', 'G', '1161', 'y', '7855', 'b', 'i', '499', '2463', '9713', 'Z', 'R', 'F', 'h', '6367', '4299', 'K', 'B', 'Y', '959', 'd', '5241', 'Z', 'b', '4309']