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.
5, ['E', '1873', '733', 'k', '1449', '8441', 'B', 'L', 'C', '3201', 'A', '4849', '8053', 'K', 'S', '6925', 'L', 'k', '1047', '5695', '7629', '9531']