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.
4, ['s', 'f', '5603', 'u', '3767', 'u', 'Z', 'u', '3043', '3819', 'q', 'K', 'a', 'D', '4023', '4969', 'r', '2607', 'K', '3907', 'j', '5187', 'F', 'Y', '8793']