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, ['2771', '9171', '2799', 'i', 'c', '1527', '3979', '6857', 'F', 'S', 's', 'h', 'I', '3273', 'e', '1429', 'N', 'U']