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.
5, ['8607', 'k', '3291', '7491', 'Q', 'W', '1269', 'i', '4321', 'r', '3735', '87', '8309', 'h', 'I', '4307', '5549', 'O', '1237', '2789', 'A', '1227']