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.
5, ['4191', 'w', '3853', 'w', 'Z', 'x', 'R', '533', 'm', '3453', 's', '1679', '4685', '33', 'M', '2983', '6565', '3919', 'C', 'M', 'F', 'a', 'w', '9061', 'x', 'o', 'h', '6881', '2309', '8001']