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.
9, ['365', '4901', 'i', '3047', 'O', '5529', 'T', 'd', 'd', 'f', '5281', 'A', 'A', 'b', 'r', 'V', '6191', '103', '7705', '3155', '7053', 'z', 'a', '6359', '3267', '4997']