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, ['1795', 'm', '729', '8779', 's', '7141', '1705', 'X', '3087', 'L', '839', '6345', 'Y', '7677', 'J', 'u', 'B', '1359', 'K', '5319', 'B', 'e', '8405', '3035', 'X', 'W']