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, ['U', 'U', 'X', '1963', 'X', '7597', '3719', '5435', '2453', 'W', '8411', '649', '2193', '2803', '8171', '3445']