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.
2, ['z', '3665', 'D', '8061', 'n', '649', '9383', '835', 'l', '9645', '9897', '4353', '5971', 'H', '6397', '793', '7521', '9705', '6191', 'Y', '7943', '2165', '6669', '4635', '7967', 'Q', 't']