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, ['Z', '6353', '4193', 'g', '8885', 'Q', '3463', 'j', '4395', '563', '8943', 'T', 'o', '123', 'r', '8471', '9781', '2203', 'e', 'x', 'y']