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.
7, ['8583', '3821', 'Z', 's', 'v', 'x', 'Q', 'J', '7929', '7723', 'H', 'H', 'k', '8407', '259', '2553', '2031', '3991', '3541', 'Q', 'K', '7497', '4919', '6503']