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, ['5405', 'S', 'R', '9709', 'C', '6543', 'R', '6785', '5463', 'w', '7745', 'F', 's', '3111', '3067', 'T', 'd', 'u', '6887', 'F', 'I', 'x', 'P', '71', '4041', 'a', 'M', '2215', '3611', '2697']