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.
2, ['3927', 'Z', '8453', '9071', '4727', 'l', '5135', '7215', '3515', '261', 'G', 'L', '1629', '2985', 'V', 'k', '781', '1595', '8515']