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.
8, ['7317', 'L', 'V', 'z', '2031', '2483', 'e', '5423', '5731', 'G', '4287', 'b', '4763', 'h', '4775', 'y', '6637', 't', '6905', '4645', 'u', '9481', 'J']