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, ['6237', '3493', '397', '6135', '4927', '9625', '7513', 's', '4871', '889', '4219', 'c', '3561', 'g', 'U', '855', '5011', 'x', 'D', 'u', 'z', '423']