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.
5, ['h', '2867', '8621', '6267', '2983', '9177', '9411', 'T', '2287', '3733', 'Y', 'J', 'Y', '2553', 'g', 'g', '7817', 'q', '7877', 'S', 'Z', 'd', 'Q', '5841', 'W', 'k', 'f', 'b']