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.
1, ['1277', 'u', 'p', 'L', 'a', 'h', '4991', 'w', '2573', '7167', '6855', '1311', 'Y', '3629', '2353', '3499', '1811', '3821', '7729', '2397']