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, ['8987', '8037', '457', 'R', 'Y', '7363', '6561', '3171', '8823', 'r', '755', 'r', 'a', 'P', 'C', '2797', 'U', 'W', '6813', '5151', 'C', 'R', '6357']