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.
13, ['R', 'g', 'O', '8535', 'z', 'k', '1017', '183', 'N', '2687', 'i', '6855', '4889', 'M', '1853', '1263', 'T', 'i', 'p', 'd', '6885', '1867', 'K', '5927', 'Z', '7491', '573', '9785', 'V', '5667']