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.
10, ['s', '43', 'S', '891', 'i', 'X', '2163', '4965', '1665', '9455', '8189', '8711', '3055', 'V', '1309', '6847', 'v', '5375', '363', '7167', '935', '6513', 'Z', '5305']