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.
8, ['7423', 'f', 'U', 'P', '2431', 'A', '6053', '5669', '7289', 'y', 'm', 'p', 'p', 'K', 'o', '8227', '2743', '7361', '2429', '2243', '7', '9065', 'l', 'V', '1295', 'k', '8243', '3229', '3241']