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.
7, ['S', 'j', 'J', 'D', '3193', 'G', 'E', 'Y', 'p', 'b', 'n', 'G', '7309', 'G', '1223', 'x', '6691', '1271', '7623', '9797', 'A', '8771', 'A', '1099', '9131', '1113', '9469']