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, ['4279', 'g', 'z', 'd', '3869', 'C', '319', 'p', '501', '1757', 'p', 'u', '5217', 'W', '4293', 'S', '6197', 'i', '9519', '9011', 'r']