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.
6, ['5771', 'i', 'b', 'T', '9177', '8579', 'q', '7573', '5753', 'E', '1639', '8673', 'Y', 'J', 'C', '5285', '6221', 'm', 'P', 'U', '9785', 'Z', '3177', '9121', 'o', 'C', '8785', 'j', 'f', '8449']