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, ['91', 'k', 'j', '809', 't', 'u', '3541', '7247', 'z', '817', 'y', 'j', '6775', '4433', 'v', 'H', 'S', 'J', '7219', '7781', 'P', '703', 'P', '6411', 'k', '8571', '8281', 'b', 'p']