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, ['4573', '3511', 'j', '9409', 'r', '5627', '8429', 'r', '7251', 'C', 'I', '8177', 'p', '1805', 'i', 'S', 'o', '443', 'y', '6069', 'n', 'o', '3767', 'r']