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.
10, ['a', '8257', 'H', '2181', 'p', '8185', '5173', 'j', 'c', '3883', 'Z', '2279', 'g', 'E', '5663', '4907', 'H', '8323', 'S', '9983', '183', 'a', '2595', 'T', 'm']