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.
1, ['5735', 'T', '2495', '2287', '5985', 'w', '2851', 'R', 'P', '5757', '2229', 'H', 'n', '5565', 'X', 'j', 'T', 'S', '8991', '4531', 'A', 'c', '827', 'l']