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.
1, ['8783', 'e', 'D', 'W', 'O', 'I', 'k', 'R', '1363', '6409', 'r', '4897', '6957', '8967', 's', '2217', 'Q', '5687', 'k', '3793', 'l', '2793', '4907', '4525', 'L', 'l', 't']