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, ['Y', '4947', 'R', 'Q', '5499', 'o', 'x', '3817', '7543', 'A', '9029', '1999', 'w', '9409', 'T', '8055', '1925', '6599', '8585', 'C', 'Y', 'l', '4711', '4297', 'O', '9647', 'z', '2787', '6791']