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', 'a', 'M', '5499', 'I', '899', '9807', '6101', 'C', '3247', 'w', 'd', 'X', '9685', 'c', '593', 'Y', 'S', 'F', 'I', 'X', 'E', 'u', '3151', 'Q', '4049', '4593', '8321', '2873']