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.
7, ['s', '8789', '9017', 'm', 'v', 'o', 'i', 'm', '729', '6319', '7399', 'D', '9559', '9361', '867', '9443', '3295', '57', '7275', 'a', '7827', '407', '2135', 'R', 'j', '5573']