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.
12, ['729', '2333', '3937', '9107', 'e', '3631', 'J', '4371', '3501', '2139', '8951', 's', '9805', '2741', '7283', 'U', 'J', '805', '1253', 'v', '5681', '3939', 'J', '2479', '3637', 'l', 'H']