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.
11, ['8965', '5173', 'B', '9277', '4867', '9761', 'h', 'D', '7701', 'p', '5357', 'T', '6821', 'O', 'k', '1153', '6227', 'N', 'D', '8747', '6773', '5869', 'U', 'R', 'a', 'o']