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.
12, ['g', 'J', 'o', '7759', '6877', 'T', 'Y', 'I', '3067', '5537', '5145', '2997', 'K', 'f', '9755', 'x', '1229', 'p', '7855', '1909', 'R', 'i', '1709', 'k', 'Z', 'V', '7809']