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, ['6891', 'I', 't', 's', '6551', '2337', 'Q', '4525', '1757', 'M', '2569', 'h', 'N', 'x', '1691', '2923', '9965', 'X', '9781', '3175', '4891', '1673', 'r', '6763']