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, ['G', 'X', '749', 'z', 's', '3731', 'z', 'T', '9237', 'T', '903', 'r', '8073', '4005', 'p', '3253', '7683', '6615', '8973', '259']