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, ['S', 'd', 'h', 'k', 'o', '5631', '6777', '4465', 'K', 'x', '7739', 'l', '9979', '8751', 'Z', 'v', '9091', 'i', '821', 'o', 'x']