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, ['v', 'r', 'h', 'X', 'M', '5699', 'm', '8439', '7039', '5351', 'F', '3421', 'u', 'B', 's', 'q', 'a', 'K', 'r', 'I', '5983', 'B', '9321', 'B', '7839', 'u', 'j']