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.
4, ['4251', '495', 'f', 'L', 'E', '3539', '8695', 'r', 'l', '3359', '7465', '7155', 'r', 'j', 'S', 'u', '1685', 'i', '8301', 'A', 'V', '3969', '8791', '5357', 'K', 'D', '2153', 'l', '2259', '1841']