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.
5, ['X', '2957', '4807', '333', '305', 's', 'o', '5483', 'e', '4971', '8379', '8053', '1765', '1115', '1995', 'a', '4571', 'P', 'K', 'V', '6911', 'E']