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.
9, ['F', 't', '8777', '843', 'S', 'I', 'y', '4343', '2909', 'U', '4287', 'a', 'y', '7557', 'F', '5887', 'z', '2389', '5261', 'e', 'W', 'l', 'c', 'v', 'b', '757', '143', '141', 'R', '835']