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.
1, ['9461', '3915', 'r', 'O', '3373', '8471', '3293', '4443', 'U', '8215', 'i', '6211', '3241', '1375', '7369', '9195', '3013', '4515', 'J', '9927', '4685']