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.
8, ['Y', '3837', 'j', '8533', '9049', '5063', '9241', 'O', '8765', '2785', '3427', 'u', '7225', 'b', 'y', 'x', 'A']