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, ['Z', '4981', '2075', 'J', 'q', 'a', 'C', '1089', '9109', 'T', '8245', '8541', '397', '767', '8881', '9559', '475', '8819', 'C', '6087', '5777', '8095', 'v', 'C', '4211', '7955', '123', '519']