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, ['y', 'D', '5399', 'O', 'c', '531', 'h', '3965', '2871', '2825', 's', '4511', '8905', 'Y', '1549', 'Q', '4483', '7063', '3609', '7471', 'p', '8539', '4437', 'H', 'y', 'U']