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, ['U', 'I', 'X', '9567', '9513', '8257', '7201', 'a', '7587', '2261', 'N', 'n', 'U', 's', '4213', 'D', 'R', 'N', '6809', 'e', '1143', '1351', '3705', '4583', 'b', '2871', 's', 'g', 'b', '1297']