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.
9, ['P', 'r', '1951', 'X', '3491', '7579', '5423', 'R', '4881', '9811', 'W', '3405', '2593', 'Z', 'a', '5907', 'F', 'u', '1471', 'u', 'B', '8217', '9111', '9523', 's']