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.
7, ['4861', 'Y', 'a', 's', 'p', 'E', 't', '9953', '7511', '6265', '6781', 'u', 'e', '247', '5661', 'L', 's', 'l', 'S', '8331', '4609', 'z', 'E', '7445', '6107', '801']