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.
6, ['Y', '5863', '989', 'v', 'P', 'p', 's', 'i', '5913', '2431', 'q', 'k', '4551', '7641', '7079', '5707', 'T', '5233', '2779', '5715', 'm', 'j', 'S']