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, ['X', 'M', '6647', 's', '9713', 'q', '571', '837', '5983', '61', 'S', 'A', '9293', 'Q', '9571', '5695', 'E', '7887', 'f', 'd', 'F', '5559', 'W', 'J', 'O', 'd', '5331']