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.
12, ['9829', 'z', 'H', 'x', '6239', '153', 'k', '7073', 'l', '3875', '9151', 'I', 'k', '5673', '7671', 'j', '2257', 'j', '1213', '5087', '2281', 'S', 'v', 'X', 'X', 'T', 'H', '683', '9833', 'W']