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.
10, ['Y', 'I', 'D', 's', '1271', 'g', '3141', 'p', '2325', '3019', '8161', '2581', 'R', '547', 'k', 'B', 's', 'F', 'g', '5239', 'x', 'E', 'g', 'B', 'o']