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.
10, ['x', '9961', '9645', '7139', 'e', 'j', '1361', 'O', '2789', 'T', 'D', '3943', 't', '1645', 'l', '9453', 'n', '9963', '7057', 'j', 'E', 'r', '6995', '9305', '5175', '1225', 'r', '4279', '2541', '3223']