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.
3, ['S', '2221', 'x', 'd', 'x', 'K', '9477', 'g', '9013', '721', '6463', 'm', 'K', '8911', '6371', '9841', 'z', 'a', '1069', '5493', '5047', '5245', 'Q', 'n', '1847', '7073', 'V', '9529', 'n']