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.
12, ['P', 'E', '501', 'w', 'O', '9469', 'U', '8287', '2429', '3653', '5045', '107', 'v', '2765', '6955', '6099', 'D', 'H', '17', 'u', '8939', 'R', 'f', 'o', 'z']