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.
6, ['u', '655', 's', '2273', '1245', 'q', '6495', 'q', '7211', '6381', '893', 'a', '1439', 'g', '5647', '7449', 'X', '743', 'd', '9589', 'g', 'Z', 'Z', 'l', '1441', '3803', '3457']