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.
3, ['1123', '6571', 'y', 'x', '6245', '7819', 'U', '2485', 'N', '1111', 'C', 'e', '5839', '3323', '8157', '9757', '8965', '3043', 'O', 'f', '3131', 'v', 'd']