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.
4, ['Z', '9417', '3159', '5273', 's', 'F', '7241', 'i', 'b', '8379', '181', 'S', '839', 'u', '6799', '5145', '2551', 'n', '6127', 'F', 'm', '9809', '2007']