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, ['5461', 'l', '4711', 'M', 'w', '437', 'u', '617', 'Q', '8333', '7567', 'p', '781', '6303', '9849', '2021', 'I', 'o', '1811', 'E', '5513', 'k', '6513', 'U', '4863', 'R', 'n']