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, ['3857', '7929', 'v', '3441', 'K', '9227', 'X', '4551', 'z', '4391', '8277', '4185', 'u', 'Z', 'G', '7413', 'W', 'V', '3513', '3135']