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.
8, ['v', '5575', 'F', '4827', 'U', '7621', 'E', 'i', '8693', '9835', '1083', 't', 'X', '6949', 'B', '8889', 'q', '6279', '311', 'B', 'w', 'g', 'Y', 'D']