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.
6, ['741', 'o', '1591', '4895', '7877', 'q', 'v', '1071', 't', '2867', '5619', 's', 'U', 'a', 'K', 'w', 'z', 'b', '6265', '1413', 'y', 'D', '9589']