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.
10, ['1703', 'w', '1085', '2421', '8709', '6635', 'i', '535', 'H', 'F', 's', 'p', '4345', '3197', 'P', '6135', '5497', '9935', '5107', '3995', 'z', '8677', '8483']