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, ['g', 'P', '8675', '5285', 'r', 'H', '3623', 'J', '6325', 'l', '8355', 'P', 'j', '2741', 'N', '2067', '21', 'y', 'B', '865', '8537', 'b', '1319']