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, ['K', '3845', 'R', 'l', 'E', '9417', 'O', '573', '6405', 'b', 'G', 't', 'C', 'f', '4771', 'p', 'g', 'Y', '6509', 't', '6917', 'M', '8007', '3041', 'C', '3303', 'l', 'S']