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, ['x', 'h', 's', '1127', '2441', '8469', '2567', 'D', 'v', 'h', 'K', '2417', 'z', 't', '3311', '5737', 'x', 'X', 'a', 's', '5817', 'h', '1187']